We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ed1727 commit c205c27Copy full SHA for c205c27
github3/errors.py
@@ -21,6 +21,9 @@ def __init__(self, response):
21
def error_400(self):
22
return exceptions.BadRequest("400 - %s" % self.debug.get('message'))
23
24
+ def error_401(self):
25
+ return exceptions.Unauthorized("401 - %s" % self.debug.get('message'))
26
+
27
def error_404(self):
28
return exceptions.NotFound("404 - %s" % self.debug.get('message'))
29
github3/exceptions.py
@@ -9,6 +9,5 @@ class UnprocessableEntity(Exception):
9
pass
10
class NotFound(Exception):
11
12
-class AnomUser(Exception):
13
- """ Exception for AnomUser handler """
+class Unauthorized(Exception):
14
0 commit comments