diff options
author | pjenvey <devnull@localhost> | 2006-08-11 03:58:25 +0000 |
---|---|---|
committer | pjenvey <devnull@localhost> | 2006-08-11 03:58:25 +0000 |
commit | 55975a49869882887d29333d083e3787cf3adc33 (patch) | |
tree | 17d7d7aa5a5361ed44ba1711e6005bbf46070643 /paste/httpexceptions.py | |
parent | e76fe7ce0a94bfe6356fe2af259a75fc0790a3fd (diff) | |
download | paste-55975a49869882887d29333d083e3787cf3adc33.tar.gz |
assert send_http_response was triggered by an HTTPException, incase it's being0.9.7
used incorrectly
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r-- | paste/httpexceptions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index 110df96..095fc9f 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -625,6 +625,8 @@ class HTTPExceptionHandler: def send_http_response(self, environ, start_response, exc_info): try: exc = exc_info[1] + assert(isinstance(exc, HTTPException)), \ + 'send_http_response triggered via a non HTTPException' return exc.wsgi_application(environ, start_response, exc_info) finally: exc_info = None |