aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/error_handler.py
diff options
context:
space:
mode:
authorGravatar D0rs4n <[email protected]>2021-08-17 16:25:14 +0200
committerGravatar D0rs4n <[email protected]>2021-08-17 16:25:14 +0200
commitce80a2fb34c14e2ece0b4ffc6bda85030764ef9c (patch)
treefd8071016715d44137b6dde3ee9d7c405e8bdeac /bot/exts/evergreen/error_handler.py
parentRemove duplicated code, improve consitency in Wikipedia Cog, and error_handler (diff)
Improve code consistency and spacing in the Wikipedia Cog
Diffstat (limited to 'bot/exts/evergreen/error_handler.py')
-rw-r--r--bot/exts/evergreen/error_handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/error_handler.py b/bot/exts/evergreen/error_handler.py
index 7a916606..a280c725 100644
--- a/bot/exts/evergreen/error_handler.py
+++ b/bot/exts/evergreen/error_handler.py
@@ -11,7 +11,7 @@ from sentry_sdk import push_scope
from bot.bot import Bot
from bot.constants import Channels, Colours, ERROR_REPLIES, NEGATIVE_REPLIES, RedirectOutput
from bot.utils.decorators import InChannelCheckFailure, InMonthCheckFailure
-from bot.utils.exceptions import ExternalAPIError, UserNotPlayingError
+from bot.utils.exceptions import APIError, UserNotPlayingError
log = logging.getLogger(__name__)
@@ -120,7 +120,7 @@ class CommandErrorHandler(commands.Cog):
await ctx.send("Game not found.")
return
- if isinstance(error, ExternalAPIError):
+ if isinstance(error, APIError):
await ctx.send(
embed=self.error_embed(
f"There was an error when communicating with the {error.api}",