fix remaining urllib2 reference (#830)

This commit is contained in:
Simon R 2019-05-22 20:50:45 +02:00 committed by Frank Denis
parent 0f3e8d32c6
commit f3e032f88a
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def load_from_url(url):
response = None
try:
response = urllib.urlopen(req, timeout=int(args.timeout))
except urllib2.URLError as err:
except urllib.URLError as err:
raise Exception("[{}] could not be loaded: {}\n".format(url, err))
if trusted is False and response.getcode() != 200:
raise Exception("[{}] returned HTTP code {}\n".format(