8000 Tidy up new exception class · staticdev/github4.py@504e9fc · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Commit 504e9fc

Browse files
Tidy up new exception class
1 parent fee85cf commit 504e9fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

github3/exceptions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ class UnprocessableResponseBody(GitHubError):
3939
def __init__(self, message, body):
4040
Exception.__init__(self, message)
4141
self.body = body
42+
self.msg = message
43+
44+
def __repr__(self):
45+
return '<{0} [{1}]>'.format('UnprocessableResponseBody', self.body)
4246

4347
def __str__(self):
4448
return self.message

0 commit comments

Comments
 (0)
0