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