diff options
Diffstat (limited to 'bot/exts/evergreen/error_handler.py')
-rw-r--r-- | bot/exts/evergreen/error_handler.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/evergreen/error_handler.py b/bot/exts/evergreen/error_handler.py index d5069168..3d056f81 100644 --- a/bot/exts/evergreen/error_handler.py +++ b/bot/exts/evergreen/error_handler.py @@ -6,7 +6,6 @@ from typing import Iterable, Union from discord import Embed, Message from discord.ext import commands -from discord.ext.commands import errors from sentry_sdk import push_scope from bot.constants import Channels, Colours, ERROR_REPLIES, NEGATIVE_REPLIES @@ -152,7 +151,7 @@ class CommandErrorHandler(commands.Cog): if not await similar_command.can_run(ctx): log.debug(log_msg) return - except errors.CommandError as cmd_error: + except commands.errors.CommandError as cmd_error: log.debug(log_msg) await self.on_command_error(ctx, cmd_error) return |