aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2023-04-05 01:43:37 +0300
committerGravatar Boris Muratov <[email protected]>2023-04-05 01:43:37 +0300
commit9911125b7dbd173669760ddbd0222b42739bba13 (patch)
treeb000169f63a4c242df33cc40a3d2546263351c49
parentCode style and clarifications (diff)
Properly format alert when there's no file extension
-rw-r--r--bot/exts/filtering/_filter_lists/extension.py2
1 files changed, 1 insertions, 1 deletions
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}