From 466a63990d1e4b216a0a670cd065625ccfcf9eb3 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Fri, 17 Mar 2023 13:15:44 +0000 Subject: [PATCH] Update 'src/gui_qt/lib/utils.py' logger added to zsync download --- src/gui_qt/lib/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui_qt/lib/utils.py b/src/gui_qt/lib/utils.py index 322fa24..f9b204c 100644 --- a/src/gui_qt/lib/utils.py +++ b/src/gui_qt/lib/utils.py @@ -233,8 +233,10 @@ class Updater: response = requests.get(url_zsync) if response.status_code == requests.codes['\o/']: zsync_file = response.content - except Exception as e: - pass + else: + logger.error('Request for zsync returned code {response.statuse_code}') + except Exception: + logger.exception('Download of zsync failed') if zsync_file is not None: for line in zsync_file.split(b'\n'):