mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +00:00
Catch URLError, not HTTPError when pulling sources
This commit is contained in:
parent
b62377b374
commit
394d956a37
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user