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

@ -373,6 +373,9 @@ mariano <marianoso@gmail.com>
mitchell <mitchell@tufala.net>
for reporting a bug
nightman <nightman@email.de>
for reporting a bug
pacman730 <pacman730@users.sourceforge.net>
for reporting a bug

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()