aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/core
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-09-18 22:06:02 +0100
committerGravatar GitHub <[email protected]>2022-09-18 22:06:02 +0100
commitd5652f714651da726ab828ec1fcfc4ebd5c41989 (patch)
tree8062d0c064c9ee27f513693c1ef49f577c115b64 /bot/exts/core
parentMerge branch 'main' into fix-whitelist-inheritance (diff)
parentMerge pull request #1096 from python-discord/fix-issue-1090 (diff)
Merge branch 'main' into fix-whitelist-inheritance
Diffstat (limited to 'bot/exts/core')
-rw-r--r--bot/exts/core/error_handler.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/core/error_handler.py b/bot/exts/core/error_handler.py
index 4578f734..372b82d2 100644
--- a/bot/exts/core/error_handler.py
+++ b/bot/exts/core/error_handler.py
@@ -171,9 +171,8 @@ class CommandErrorHandler(commands.Cog):
if not await similar_command.can_run(ctx):
log.debug(log_msg)
continue
- except commands.errors.CommandError as cmd_error:
+ except commands.errors.CommandError:
log.debug(log_msg)
- await self.on_command_error(ctx, cmd_error)
continue
command_suggestions.append(similar_command_name)