aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Izan <[email protected]>2022-09-06 08:26:48 -0400
committerGravatar Izan <[email protected]>2022-09-06 08:26:48 -0400
commitf3b2a46185de50df993b2b12146d1575529426ad (patch)
treeacb05a6e11a9f26a3cfb44b737c7c0406d0fb1ab
parentMerge pull request #1094 from python-discord/message-content-intent (diff)
Remove call to on_command_error that shouldn't be there.
-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)