1
0
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:
lethliel 2020-04-01 12:48:12 +02:00
parent 894f1c281a
commit 81acc39c9f

View File

@ -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)