diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-11 07:16:45 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-11 07:16:45 +1200 |
commit | 1227369db31bff39707091f562b0ad946d14728a (patch) | |
tree | 2f3fe0567ea007442d671dd638e3dc28e6b6750a /netlib/wsgi.py | |
parent | 4fdc2179e25926d531ea8c4a5d6fc78ce75cd6ff (diff) | |
download | mitmproxy-1227369db31bff39707091f562b0ad946d14728a.tar.gz mitmproxy-1227369db31bff39707091f562b0ad946d14728a.tar.bz2 mitmproxy-1227369db31bff39707091f562b0ad946d14728a.zip |
Signal errors back to caller in WSGI .serve()
Diffstat (limited to 'netlib/wsgi.py')
-rw-r--r-- | netlib/wsgi.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/netlib/wsgi.py b/netlib/wsgi.py index 6fe6b6b3..4fa2c537 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 |