From 9473521a9e8457882e135e278996a3294e53cd36 Mon Sep 17 00:00:00 2001 From: Shivansh-007 Date: Tue, 23 Mar 2021 06:14:04 +0530 Subject: Fix imports --- bot/exts/evergreen/error_handler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bot/exts/evergreen/error_handler.py') 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 -- cgit v1.2.3