diff options
| author | 2023-04-05 01:43:37 +0300 | |
|---|---|---|
| committer | 2023-04-05 01:43:37 +0300 | |
| commit | 9911125b7dbd173669760ddbd0222b42739bba13 (patch) | |
| tree | b000169f63a4c242df33cc40a3d2546263351c49 | |
| parent | Code style and clarifications (diff) | |
Properly format alert when there's no file extension
| -rw-r--r-- | bot/exts/filtering/_filter_lists/extension.py | 2 |
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} |