From 69df00c19f3c358482243a9e2fff15b315cd8ff5 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 4 Feb 2016 03:09:39 +0100 Subject: [PATCH] remove debug output --- libmproxy/protocol/http.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index f0f84e4a9..f3240b850 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