aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils
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/utils
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/utils')
-rw-r--r--bot/utils/exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/exceptions.py b/bot/utils/exceptions.py
index 73c8e3e1..b4175695 100644
--- a/bot/utils/exceptions.py
+++ b/bot/utils/exceptions.py
@@ -7,7 +7,7 @@ class UserNotPlayingError(Exception):
pass
-class ExternalAPIError(Exception):
+class APIError(Exception):
"""Raised when an external API(eg. Wikipedia) returns an error response."""
def __init__(self, api: str, status_code: int, error_msg: Optional[str] = None):