diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-17 17:41:39 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-02-04 09:52:02 +0100 |
commit | c44a8949f7e0bc8f1725ee1f51633619a8643e0f (patch) | |
tree | 77dfa8efd5ee099330f1bfb876e7a87287c9aba1 /libmproxy/protocol | |
parent | de1b637a47c031840835fb9927b9289c04d777dc (diff) | |
download | mitmproxy-c44a8949f7e0bc8f1725ee1f51633619a8643e0f.tar.gz mitmproxy-c44a8949f7e0bc8f1725ee1f51633619a8643e0f.tar.bz2 mitmproxy-c44a8949f7e0bc8f1725ee1f51633619a8643e0f.zip |
use proper exception classes
Diffstat (limited to 'libmproxy/protocol')
-rw-r--r-- | libmproxy/protocol/http.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 4426a541..aeb12656 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -635,11 +635,7 @@ class HttpLayer(Layer): try: response = make_error_response(code, message) self.send_response(response) - except Exception as e: - self.log( - "error: %s" % repr(e), - level="debug" - ) + except NetlibException, h2.exceptions.H2Error: pass def change_upstream_proxy_server(self, address): |