aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Shivansh-007 <[email protected]>2021-03-23 06:14:04 +0530
committerGravatar Shivansh-007 <[email protected]>2021-03-23 06:14:04 +0530
commit9473521a9e8457882e135e278996a3294e53cd36 (patch)
tree0b328fcac9412dd04c2e11c6e8239d8169a085ac
parentFeature: suggest command usage for misspell commands (diff)
Fix imports
-rw-r--r--bot/exts/evergreen/error_handler.py3
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