Skip to content

Commit

Permalink
catch socket.error for retries
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesturk committed Feb 8, 2011
1 parent ae87bc4 commit 9c0d43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapelib.py
Expand Up @@ -378,7 +378,7 @@ def _do_request(self, url, method, body, headers, use_httplib2):
# return on a success/redirect/404
if resp.status < 400 or resp.status == 404:
return resp, content
except socket.timeout, e:
except socket.error, e:
exception_raised = True
else:
try:
Expand Down

0 comments on commit 9c0d43f

Please sign in to comment.