Update 'src/gui_qt/lib/utils.py'
logger added to zsync download
This commit is contained in:
parent
8690cb222e
commit
466a63990d
@ -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'):
|
||||||
|
Loading…
Reference in New Issue
Block a user