From 81acc39c9f59bcdc4e31ec57af5a0a19adf16d6a Mon Sep 17 00:00:00 2001 From: lethliel Date: Wed, 1 Apr 2020 12:48:12 +0200 Subject: [PATCH] e.reason is a string not a integer decimal --- osc/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/build.py b/osc/build.py index b3cce819..f6f4a085 100644 --- a/osc/build.py +++ b/osc/build.py @@ -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)