Signal errors back to caller in WSGI .serve()

This commit is contained in:
Aldo Cortesi 2012-07-11 07:16:45 +12:00
parent 4fdc2179e2
commit 1227369db3
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ class WSGIAdaptor:
except Exception, v:
try:
s = traceback.format_exc()
errs.write(s)
self.error_page(soc, state["headers_sent"], s)
except Exception, v: # pragma: no cover
pass # pragma: no cover