Catch URLError, not HTTPError when pulling sources

This commit is contained in:
Stefano Rivera 2011-01-15 13:48:38 +02:00
parent b62377b374
commit 394d956a37

View File

@ -279,7 +279,7 @@ class SourcePackage(object):
try:
in_ = urllib2.urlopen(url)
except urllib2.HTTPError:
except urllib2.URLError:
return False
with open(pathname, 'wb') as out: