From 1227369db31bff39707091f562b0ad946d14728a Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 11 Jul 2012 07:16:45 +1200 Subject: [PATCH] Signal errors back to caller in WSGI .serve() --- netlib/wsgi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netlib/wsgi.py b/netlib/wsgi.py index 6fe6b6b3b..4fa2c5372 100644 --- a/netlib/wsgi.py +++ b/netlib/wsgi.py @@ -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