summaryrefslogtreecommitdiff
path: root/paste/httpexceptions.py
diff options
context:
space:
mode:
authorpjenvey <devnull@localhost>2006-08-11 03:58:25 +0000
committerpjenvey <devnull@localhost>2006-08-11 03:58:25 +0000
commit55975a49869882887d29333d083e3787cf3adc33 (patch)
tree17d7d7aa5a5361ed44ba1711e6005bbf46070643 /paste/httpexceptions.py
parente76fe7ce0a94bfe6356fe2af259a75fc0790a3fd (diff)
downloadpaste-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.py2
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