Better handling of cert errors on connection.

This commit is contained in:
Aldo Cortesi 2013-08-10 23:07:22 +12:00
parent edb10e33aa
commit 2c4e5e0a73

View File

@ -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: