diff options
author | 2021-08-17 16:25:14 +0200 | |
---|---|---|
committer | 2021-08-17 16:25:14 +0200 | |
commit | ce80a2fb34c14e2ece0b4ffc6bda85030764ef9c (patch) | |
tree | fd8071016715d44137b6dde3ee9d7c405e8bdeac /bot/utils/exceptions.py | |
parent | Remove 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/exceptions.py')
-rw-r--r-- | bot/utils/exceptions.py | 2 |
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): |