From c44a8949f7e0bc8f1725ee1f51633619a8643e0f Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sun, 17 Jan 2016 17:41:39 +0100 Subject: use proper exception classes --- libmproxy/protocol/http.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libmproxy/protocol/http.py') 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): -- cgit v1.2.3