From ce80a2fb34c14e2ece0b4ffc6bda85030764ef9c Mon Sep 17 00:00:00 2001 From: D0rs4n <41237606+D0rs4n@users.noreply.github.com> Date: Tue, 17 Aug 2021 16:25:14 +0200 Subject: Improve code consistency and spacing in the Wikipedia Cog --- bot/utils/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/utils/exceptions.py') 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): -- cgit v1.2.3