From dcc062fcb9c3eeac045471919b017e70a258e217 Mon Sep 17 00:00:00 2001 From: Joe Gregorio Date: Mon, 13 Jun 2011 13:09:20 -0400 Subject: Fixes issue 145. --- python2/httplib2/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python2') diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py index fb090a9..39d817f 100644 --- a/python2/httplib2/__init__.py +++ b/python2/httplib2/__init__.py @@ -911,6 +911,8 @@ class HTTPSConnectionWithTimeout(httplib.HTTPSConnection): raise SSLHandshakeError(e) else: raise + except (socket.timeout, socket.gaierror): + raise except socket.error, msg: if self.debuglevel > 0: print 'connect fail:', (self.host, self.port) -- cgit v1.2.1