mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2026-02-04 10:14:15 +02:00
Raise instances of exceptions for consistency
This commit is contained in:
@@ -81,12 +81,12 @@ class DiscordOAuth2HttpClient(abc.ABC):
|
||||
@staticmethod
|
||||
@abc.abstractmethod
|
||||
def save_authorization_token(token: dict):
|
||||
raise NotImplementedError
|
||||
raise NotImplementedError()
|
||||
|
||||
@staticmethod
|
||||
@abc.abstractmethod
|
||||
def get_authorization_token() -> dict:
|
||||
raise NotImplementedError
|
||||
raise NotImplementedError()
|
||||
|
||||
def _fetch_token(self, state):
|
||||
discord = self._make_session(state=state)
|
||||
|
||||
Reference in New Issue
Block a user