diff options
Diffstat (limited to 'python2/httplib2/__init__.py')
| -rw-r--r-- | python2/httplib2/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py index 334177e..fbd2d76 100644 --- a/python2/httplib2/__init__.py +++ b/python2/httplib2/__init__.py @@ -994,6 +994,10 @@ try: def getresponse(self): return self.response + if self.response: + return self.response + else: + raise httplib.HTTPException() def set_debuglevel(self, level): pass @@ -1160,7 +1164,6 @@ and more. conn.close() conn.connect() continue - pass try: response = conn.getresponse() except (socket.error, httplib.HTTPException): |
