mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Raise a specific exception for non-existing objects (issue #152)
This commit is contained in:
@@ -46,3 +46,9 @@ class BadCredentialsException(GithubException):
|
||||
"""
|
||||
Exception raised in case of bad credentials (when Github API replies with a 401 or 403 HTML status)
|
||||
"""
|
||||
|
||||
|
||||
class UnknownObjectException(GithubException):
|
||||
"""
|
||||
Exception raised a non-existing object is requested (when Github API replies with a 404 HTML status)
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user