From 74e62903c13d9f1f1545a31ff019cdfc5e83ddda Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Tue, 2 Feb 2016 09:57:11 +0100 Subject: [PATCH] fix exception classes --- libmproxy/protocol/http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 9b4d4d8f8..d9803a370 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -235,7 +235,8 @@ class HttpLayer(Layer): try: response = make_error_response(code, message) self.send_response(response) - except NetlibException as H2Error: + except (NetlibException, H2Error): + self.log(traceback.format_exc(), "debug") pass def change_upstream_proxy_server(self, address):