mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Raise a specific exception for bad credentials (issue #152)
This commit is contained in:
@@ -40,3 +40,9 @@ class GithubException(Exception):
|
||||
|
||||
def __str__(self):
|
||||
return str(self.status) + " " + str(self.data)
|
||||
|
||||
|
||||
class BadCredentialsException(GithubException):
|
||||
"""
|
||||
Exception raised in case of bad credentials (when Github API replies with a 401 or 403 HTML status)
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user