diff --git a/Github/exceptions.py b/Github/exceptions.py index c9e0ce7..bf419db 100644 --- a/Github/exceptions.py +++ b/Github/exceptions.py @@ -10,8 +10,10 @@ __all__ = ( 'OrganizationNotFound', 'RepositoryNotFound', 'ObjectNotFound', + 'IssueNotFound', 'NoAuthProvided', 'InvalidAuthCombination', + 'InvalidToken', 'AlreadyStarted', 'NotStarted' ) @@ -70,6 +72,11 @@ class InvalidAuthCombination(APIError): msg = 'You must provide both a username and a user token or neither.' super().__init__(msg) +class InvalidToken(APIError): + def __init__(self) -> None: + msg = "The token you provided was invalid, please check again." + super().__init__(msg) + class AlreadyStarted(APIError): """Raised when start is called multiple times.""" def __init__(self):