From f3b2a46185de50df993b2b12146d1575529426ad Mon Sep 17 00:00:00 2001 From: Izan Date: Tue, 6 Sep 2022 08:26:48 -0400 Subject: Remove call to on_command_error that shouldn't be there. --- bot/exts/core/error_handler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bot/exts/core') 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) -- cgit v1.2.3