Commit 53581171 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #846 from jmuchemb/pkg-idx-timeout

package_index: fix bug not catching some network timeouts
parents 5ff82539 161c0a50
......@@ -768,7 +768,7 @@ class PackageIndex(Environment):
'down, %s' %
(url, v.line)
)
except http_client.HTTPException as v:
except (http_client.HTTPException, socket.error) as v:
if warning:
self.warn(warning, v)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment