mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-25 01:41: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:
|
try:
|
||||||
in_ = urllib2.urlopen(url)
|
in_ = urllib2.urlopen(url)
|
||||||
except urllib2.HTTPError:
|
except urllib2.URLError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
with open(pathname, 'wb') as out:
|
with open(pathname, 'wb') as out:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user