diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2013-02-24 11:08:43 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2013-02-24 11:08:43 +1300 |
commit | c6f9a2d74dc0b2d9185743a02e4c1410983f0c3f (patch) | |
tree | 9894cfdcbd22ae49b6ae7d51c7b20a2438b7d922 /netlib/wsgi.py | |
parent | 7d185356655fa2f40c452c273a3cd039360d20c1 (diff) | |
download | mitmproxy-c6f9a2d74dc0b2d9185743a02e4c1410983f0c3f.tar.gz mitmproxy-c6f9a2d74dc0b2d9185743a02e4c1410983f0c3f.tar.bz2 mitmproxy-c6f9a2d74dc0b2d9185743a02e4c1410983f0c3f.zip |
More accurate description of an HTTP read error, make pyflakes happy.
Diffstat (limited to 'netlib/wsgi.py')
-rw-r--r-- | netlib/wsgi.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/netlib/wsgi.py b/netlib/wsgi.py index 4fa2c537..dffc2ace 100644 --- a/netlib/wsgi.py +++ b/netlib/wsgi.py @@ -1,4 +1,4 @@ -import cStringIO, urllib, time, sys, traceback +import cStringIO, urllib, time, traceback import odict @@ -128,13 +128,13 @@ class WSGIAdaptor: write(i) if not state["headers_sent"]: write("") - except Exception, v: + except Exception: 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 + except Exception: # pragma: no cover + pass return errs.getvalue() |