summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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