Show More
@@ -73,10 +73,12 b' class ErrorResponse(Exception):' | |||
|
73 | 73 | def __init__(self, code, message=None, headers=[]): |
|
74 | 74 | if message is None: |
|
75 | 75 | message = _statusmessage(code) |
|
76 |
Exception.__init__( |
|
|
76 | super(Exception, self).__init__() | |
|
77 | 77 | self.code = code |
|
78 | 78 | self.message = message |
|
79 | 79 | self.headers = headers |
|
80 | def __str__(self): | |
|
81 | return self.message | |
|
80 | 82 | |
|
81 | 83 | class continuereader(object): |
|
82 | 84 | def __init__(self, f, write): |
General Comments 0
You need to be logged in to leave comments.
Login now