diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-02-02 09:57:11 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-02-04 09:52:28 +0100 |
commit | 74e62903c13d9f1f1545a31ff019cdfc5e83ddda (patch) | |
tree | a6858ea206a5ad73f903f206af4082d2378419f2 /libmproxy/protocol/http.py | |
parent | 738094e1674ae78f92ff32020e608510ff4af45a (diff) | |
download | mitmproxy-74e62903c13d9f1f1545a31ff019cdfc5e83ddda.tar.gz mitmproxy-74e62903c13d9f1f1545a31ff019cdfc5e83ddda.tar.bz2 mitmproxy-74e62903c13d9f1f1545a31ff019cdfc5e83ddda.zip |
fix exception classes
Diffstat (limited to 'libmproxy/protocol/http.py')
-rw-r--r-- | libmproxy/protocol/http.py | 3 |
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): |