From 3438ac3eaadc6a114e9201fe00d5b76ed7448bc3 Mon Sep 17 00:00:00 2001 From: Ionite Date: Sat, 18 Feb 2023 18:45:28 -0500 Subject: Fix empty files format when only new lines --- bot/exts/utils/snekbox/_cog.py | 1 + 1 file changed, 1 insertion(+) 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}" -- cgit v1.2.3