eshad / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

Wrong exception thrown in python 3.x version #165

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
httplib2 for python 3.X uses httplib.HTTPException instead of 
http.client.HTTPException at line 853

852                raise ServerNotFoundError("Unable to find the server at %s" 
% conn.host)
853          except (socket.error, httplib.HTTPException):
854                # Just because the server closed the connection doesn't 
apparently mean
855                # that the server didn't send a response.
856                pass
857            try:
858                response = conn.getresponse()
859            except (socket.error, http.client.HTTPException):            # 
Here it is well modified

Original issue reported on code.google.com by deepbit on 19 Aug 2011 at 12:21