aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-02-04 03:09:39 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-04 09:52:29 +0100
commit69df00c19f3c358482243a9e2fff15b315cd8ff5 (patch)
treedcb15b04968629ee3d542f7dc7c52f101f20991a
parent07c36542f0ce12300b45b7c853bf52ff23a80fb6 (diff)
downloadmitmproxy-69df00c19f3c358482243a9e2fff15b315cd8ff5.tar.gz
mitmproxy-69df00c19f3c358482243a9e2fff15b315cd8ff5.tar.bz2
mitmproxy-69df00c19f3c358482243a9e2fff15b315cd8ff5.zip
remove debug output
-rw-r--r--libmproxy/protocol/http.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py
index f0f84e4a..f3240b85 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -188,7 +188,7 @@ class HttpLayer(Layer):
self.log("response", "debug", [repr(flow.response)])
flow = self.channel.ask("response", flow)
- if not flow or flow == Kill:
+ if flow == Kill:
raise Kill()
self.send_response_to_client(flow)
@@ -219,9 +219,6 @@ class HttpLayer(Layer):
else:
six.reraise(ProtocolException, ProtocolException(
"Error in HTTP connection: %s" % repr(e)), sys.exc_info()[2])
- except Exception:
- traceback.print_exc()
- six.reraise(*sys.exc_info()[:3])
finally:
flow.live = False