mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-01 07:46:22 +02:00
Exception raising fix for Python 3
This commit is contained in:
parent
82ea197972
commit
3451149427
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ def download_url(url, store_directory, save_name=None, messages=True, suffix='')
|
|||
os.makedirs(dir_name)
|
||||
try:
|
||||
response = urllib2.urlopen(url+suffix)
|
||||
except urllib2.URLError, e:
|
||||
except urllib2.URLError as e:
|
||||
if not hasattr(e, "code"):
|
||||
raise
|
||||
response = e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue