This commit is contained in:
Miroslav Stampar 2015-03-03 15:10:06 +01:00
parent 3f6c3b40dd
commit 3347fc25ca

View File

@ -53,7 +53,8 @@ class HTTPSConnection(httplib.HTTPSConnection):
break
else:
sock.close()
except (ssl.SSLError, socket.error), errMsg:
except (ssl.SSLError, socket.error, httplib.BadStatusLine), errMsg:
self._tunnel_host = None
logger.debug("SSL connection error occurred ('%s')" % errMsg)
if not success: