Show More
@@ -91,12 +91,12 b' permhooks = [checkauthz]' | |||||
91 |
|
91 | |||
92 |
|
92 | |||
93 | class ErrorResponse(Exception): |
|
93 | class ErrorResponse(Exception): | |
94 |
def __init__(self, code, message=None, headers= |
|
94 | def __init__(self, code, message=None, headers=None): | |
95 | if message is None: |
|
95 | if message is None: | |
96 | message = _statusmessage(code) |
|
96 | message = _statusmessage(code) | |
97 | Exception.__init__(self, message) |
|
97 | Exception.__init__(self, message) | |
98 | self.code = code |
|
98 | self.code = code | |
99 | self.headers = headers |
|
99 | self.headers = headers or [] | |
100 |
|
100 | |||
101 | class continuereader(object): |
|
101 | class continuereader(object): | |
102 | def __init__(self, f, write): |
|
102 | def __init__(self, f, write): |
General Comments 0
You need to be logged in to leave comments.
Login now