Skip to content

Commit

Permalink
Improve exception string representation (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed May 5, 2019
1 parent 899f776 commit 73a2270
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions taiga/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ def __init__(self, uri, status_code, message="", method='GET'):
message = json_message['_error_message']
except ValueError:
pass
if not message:
message = 'Status: {} on URI: {}'.format(status_code, uri)
super(TaigaRestException, self).__init__(message)

0 comments on commit 73a2270

Please sign in to comment.