Show More
@@ -93,7 +93,7 b' class ErrorResponse(Exception):' | |||||
93 | def __init__(self, code, message=None, headers=None): |
|
93 | def __init__(self, code, message=None, headers=None): | |
94 | if message is None: |
|
94 | if message is None: | |
95 | message = _statusmessage(code) |
|
95 | message = _statusmessage(code) | |
96 | Exception.__init__(self, message) |
|
96 | Exception.__init__(self, pycompat.sysstr(message)) | |
97 | self.code = code |
|
97 | self.code = code | |
98 | if headers is None: |
|
98 | if headers is None: | |
99 | headers = [] |
|
99 | headers = [] |
General Comments 0
You need to be logged in to leave comments.
Login now