aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-02 09:57:11 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-04 09:52:28 +0100
commit74e62903c13d9f1f1545a31ff019cdfc5e83ddda (patch)
treea6858ea206a5ad73f903f206af4082d2378419f2
parent738094e1674ae78f92ff32020e608510ff4af45a (diff)
downloadmitmproxy-74e62903c13d9f1f1545a31ff019cdfc5e83ddda.tar.gz
mitmproxy-74e62903c13d9f1f1545a31ff019cdfc5e83ddda.tar.bz2
mitmproxy-74e62903c13d9f1f1545a31ff019cdfc5e83ddda.zip
fix exception classes
-rw-r--r--libmproxy/protocol/http.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py
index 9b4d4d8f..d9803a37 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):