diff options
Diffstat (limited to 'libmproxy')
-rw-r--r-- | libmproxy/protocol/http.py | 5 |
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 |