aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ionite <[email protected]>2023-02-18 18:45:28 -0500
committerGravatar Ionite <[email protected]>2023-02-18 18:45:28 -0500
commit3438ac3eaadc6a114e9201fe00d5b76ed7448bc3 (patch)
treeba9967a9671a22c729e9bc311ded39f07fc4e060
parentText file upload to paste service / in-line display (diff)
Fix empty files format when only new lines
-rw-r--r--bot/exts/utils/snekbox/_cog.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/utils/snekbox/_cog.py b/bot/exts/utils/snekbox/_cog.py
index 21699e8e5..f20a6e822 100644
--- a/bot/exts/utils/snekbox/_cog.py
+++ b/bot/exts/utils/snekbox/_cog.py
@@ -401,6 +401,7 @@ class Snekbox(Cog):
line_nums=False,
mark_no_output=False
)
+ format_text = format_text or "[Empty]"
# With any link, use it (don't use budget)
if link_text:
msg += f"\n`{file.name}`\n{link_text}"