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