diff options
author | ianb <devnull@localhost> | 2005-12-19 23:13:04 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2005-12-19 23:13:04 +0000 |
commit | 96f94af7b175fcb5f85b71bcc2d0cd419212f80d (patch) | |
tree | 519026d6aa293e8b42be8ecb2bf57ccf24deca3a /paste/httpexceptions.py | |
parent | c151110875d05ff71c408c6742a301ba81e4630d (diff) | |
download | paste-96f94af7b175fcb5f85b71bcc2d0cd419212f80d.tar.gz |
Handle case of no headers and proper error message
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r-- | paste/httpexceptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index 837fd66..cd08909 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -157,7 +157,7 @@ class HTTPException(Exception): assert isinstance(comment, (type(None), basestring)) self.headers = headers or tuple() for req in self.required_headers: - assert has_header(headers, req) + assert headers and has_header(headers, req) if detail is not None: self.detail = detail if comment is not None: |