diff options
| author | 2023-02-09 13:16:25 -0500 | |
|---|---|---|
| committer | 2023-02-09 13:16:25 -0500 | |
| commit | 455c6b8128d8ad9fe24b9b87002a096f8eff0319 (patch) | |
| tree | 38442da55d1b4ebeb68b98f284e46f887cdb456b | |
| parent | Update unit tests for file error message changes (diff) | |
Hide no output on any file upload
| -rw-r--r-- | bot/exts/utils/snekbox/_cog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/snekbox/_cog.py b/bot/exts/utils/snekbox/_cog.py index a46fb8f44..c0e8e432e 100644 --- a/bot/exts/utils/snekbox/_cog.py +++ b/bot/exts/utils/snekbox/_cog.py @@ -329,7 +329,7 @@ class Snekbox(Cog): output, paste_link = await self.format_output(result.stdout) msg = f"{ctx.author.mention} {result.status_emoji} {msg}.\n" - if not result.files or output not in ("[No output]", ""): + if output not in ("[No output]", "") or not (result.files or result.failed_files): msg += f"\n```\n{output}\n```" if paste_link: |