Merge pull request #25 from aidanhs/aphs-add-error-details
Add useful error information on non-http error
This commit is contained in:
Коммит
a84c651a92
4
emsdk
4
emsdk
|
@ -294,8 +294,8 @@ def download_file(url, dstpath, download_even_if_exists=False):
|
|||
print "HTTP error with URL '" + url + "': " + str(e)
|
||||
rmfile(file_name)
|
||||
return None
|
||||
except:
|
||||
print "Error downloading URL '" + url + "'!"
|
||||
except Exception, e:
|
||||
print "Error downloading URL '" + url + "': " + str(e)
|
||||
rmfile(file_name)
|
||||
return None
|
||||
return file_name
|
||||
|
|
Загрузка…
Ссылка в новой задаче