mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 17:46:17 +01:00
e.reason is a string not a integer decimal
This commit is contained in:
parent
894f1c281a
commit
81acc39c9f
@ -317,7 +317,7 @@ def get_preinstall_image(apiurl, arch, cache_dir, img_info):
|
||||
try:
|
||||
gr.urlgrab(url, filename=ifile_path_part, text='fetching image')
|
||||
except HTTPError as e:
|
||||
print("Failed to download! ecode:%i reason:%i" % (e.code, e.reason))
|
||||
print("Failed to download! ecode:%i reason:%s" % (e.code, e.reason))
|
||||
return ('', '', [])
|
||||
# download ok, rename partial file to final file name
|
||||
os.rename(ifile_path_part, ifile_path)
|
||||
|
Loading…
Reference in New Issue
Block a user