diff options
| -rw-r--r-- | bot/exts/filtering/_ui/ui.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/filtering/_ui/ui.py b/bot/exts/filtering/_ui/ui.py index 610088217..f0055d72d 100644 --- a/bot/exts/filtering/_ui/ui.py +++ b/bot/exts/filtering/_ui/ui.py @@ -156,6 +156,8 @@ def format_response_error(e: ResponseCodeError) -> Embed: description = description.strip() if len(description) > MAX_EMBED_DESCRIPTION: description = description[:MAX_EMBED_DESCRIPTION] + "[...]" + if not description: + description = "Something unexpected happened, check the logs." embed = Embed(colour=discord.Colour.red(), title="Oops...", description=description) return embed |