diff options
| author | ianb <devnull@localhost> | 2005-05-07 07:46:29 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-05-07 07:46:29 +0000 |
| commit | 5cf0de3291f190996ad2853c5227478098b4ee06 (patch) | |
| tree | 6ff06da07a65595c23497e006fe80207cf42f391 /paste/httpexceptions.py | |
| parent | b00d560c182702238ec73a7f011b7c2768d78616 (diff) | |
| download | paste-5cf0de3291f190996ad2853c5227478098b4ee06.tar.gz | |
The order of arguments was off
Diffstat (limited to 'paste/httpexceptions.py')
| -rw-r--r-- | paste/httpexceptions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index 0396f43..dbcf742 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -15,10 +15,11 @@ class HTTPException(Exception): message = None # @@: not currently used: required_headers = () - def __init__(self, headers=None, message=None): + def __init__(self, message=None, headers=None): self.headers = headers if message is not None: self.message = message + Exception.__init__(self, self.message) def html(self, environ): message = self.message |
