1
0
forked from IPKM/nmreval

Update 'src/gui_qt/lib/utils.py'

logger added to zsync download
This commit is contained in:
Dominik Demuth 2023-03-17 13:15:44 +00:00
parent 8690cb222e
commit 466a63990d

View File

@ -233,8 +233,10 @@ class Updater:
response = requests.get(url_zsync) response = requests.get(url_zsync)
if response.status_code == requests.codes['\o/']: if response.status_code == requests.codes['\o/']:
zsync_file = response.content zsync_file = response.content
except Exception as e: else:
pass logger.error('Request for zsync returned code {response.statuse_code}')
except Exception:
logger.exception('Download of zsync failed')
if zsync_file is not None: if zsync_file is not None:
for line in zsync_file.split(b'\n'): for line in zsync_file.split(b'\n'):