From 9911125b7dbd173669760ddbd0222b42739bba13 Mon Sep 17 00:00:00 2001 From: Boris Muratov <8bee278@gmail.com> Date: Wed, 5 Apr 2023 01:43:37 +0300 Subject: Properly format alert when there's no file extension --- bot/exts/filtering/_filter_lists/extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/filtering/_filter_lists/extension.py b/bot/exts/filtering/_filter_lists/extension.py index 9d6c4c0e7..d805fa7aa 100644 --- a/bot/exts/filtering/_filter_lists/extension.py +++ b/bot/exts/filtering/_filter_lists/extension.py @@ -115,4 +115,4 @@ class ExtensionsList(FilterList[ExtensionFilter]): ctx.matches += not_allowed.values() ctx.blocked_exts |= set(not_allowed) actions = self[ListType.ALLOW].defaults.actions if ctx.event != Event.SNEKBOX else None - return actions, [f"`{ext}`" for ext in not_allowed], {ListType.ALLOW: triggered} + return actions, [f"`{ext}`" if ext else "`No Extension`" for ext in not_allowed], {ListType.ALLOW: triggered} -- cgit v1.2.3