bug fix (reported by nightman)

This commit is contained in:
Miroslav Stampar
2010-10-16 21:29:35 +00:00
parent 2b60304933
commit 5c3d21065a
2 changed files with 4 additions and 1 deletions

View File

@@ -152,7 +152,7 @@ class HTTPHandler(urllib2.HTTPHandler):
if not h is None:
try:
self._start_connection(h, req)
except socket.error, e:
except:
r = None
else:
try: r = h.getresponse()