Commits

pjenvey  committed b0d22f2

assert send_http_response was triggered by an HTTPException, incase it's being
used incorrectly

  • Participants
  • Parent commits fef9652
  • Tags 0.9.7

Comments (0)

Files changed (1)

File paste/httpexceptions.py

     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