Skip to content

Commit

Permalink
fix re-raise of error after retry
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesturk committed Apr 6, 2011
1 parent ba557c9 commit bbf3cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapelib.py
Expand Up @@ -434,7 +434,7 @@ def _do_request(self, url, method, body, headers, use_httplib2,
and not retry_on_404):
return resp, content
except socket.error, e:
exception_raised = True
exception_raised = e
except AttributeError, e:
if e.message == "'NoneType' object has no attribute 'makefile'":
exception_raised = e
Expand Down

0 comments on commit bbf3cf7

Please sign in to comment.