From 2c4e5e0a73630c8c540ee3d512a6190769b2cbb9 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 10 Aug 2013 23:07:22 +1200 Subject: [PATCH] Better handling of cert errors on connection. --- libmproxy/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index 08d095b0b..a4290ec1d 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -263,7 +263,7 @@ class ProxyHandler(tcp.BaseHandler): # disconnect. if http.response_connection_close(response.httpversion, response.headers): return - except (IOError, ProxyError, http.HttpError, tcp.NetLibDisconnect), e: + except (IOError, ProxyError, http.HttpError, tcp.NetLibError), e: if hasattr(e, "code"): cc.error = "%s: %s"%(e.code, e.msg) else: