aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar TizzySaurus <[email protected]>2022-02-18 13:10:10 +0000
committerGravatar GitHub <[email protected]>2022-02-18 13:10:10 +0000
commitf500249dfe8c8a0e1a957640c85c5e23d2af335e (patch)
tree25aa695e05a8dab0dfc3d16cfdce4c8f31dbf0bc
parentInclude regex error in failure message (diff)
Remove unnecessary assignment
Co-authored-by: ChrisJL <[email protected]>
-rw-r--r--bot/exts/filters/filter_lists.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/filters/filter_lists.py b/bot/exts/filters/filter_lists.py
index 9d3a52942..a883ddf54 100644
--- a/bot/exts/filters/filter_lists.py
+++ b/bot/exts/filters/filter_lists.py
@@ -76,7 +76,7 @@ class FilterLists(Cog):
# If it's a filter token, validate the passed regex
elif list_type == "FILTER_TOKEN":
try:
- _ = re.compile(content)
+ re.compile(content)
except re.error as e:
await ctx.message.add_reaction("❌")
await ctx.send(