aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/help.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/help.py b/bot/cogs/help.py
index 198e88b55..5f3fc4750 100644
--- a/bot/cogs/help.py
+++ b/bot/cogs/help.py
@@ -150,8 +150,8 @@ class CustomHelpCommand(HelpCommand):
# Run fuzzywuzzy's processor beforehand, and avoid matching if processed string is empty
# This avoids fuzzywuzzy from raising a warning on inputs with only non-alphanumeric characters
- if full_process(string):
- result = process.extractBests(string, choices, scorer=fuzz.ratio, score_cutoff=60, processor=None)
+ if (processed := full_process(string)):
+ result = process.extractBests(processed, choices, scorer=fuzz.ratio, score_cutoff=60, processor=None)
else:
result = []