This commit is contained in:
Kovid Goyal 2011-08-11 22:21:49 -06:00
parent beb6fe4317
commit e88dd8be85

View File

@ -215,7 +215,7 @@ class RecursiveFetcher(object):
raise FetchError, responses[err.code]
if getattr(err, 'reason', [0])[0] == 104 or \
getattr(getattr(err, 'args', [None])[0], 'errno', None) in (-2,
-3): # Connection reset by peer or Name or service not know
-3): # Connection reset by peer or Name or service not known
self.log.debug('Temporary error, retrying in 1 second')
time.sleep(1)
with closing(open_func(url, timeout=self.timeout)) as f: