Prevent broken release (missing asset) from corrupting existing installation.

pull/1556/head
morpheus65535 3 years ago
parent 8b2c77c17b
commit 36a2309bca

@ -36,7 +36,7 @@ def check_releases():
if asset['name'] == 'bazarr.zip': if asset['name'] == 'bazarr.zip':
download_link = asset['browser_download_url'] download_link = asset['browser_download_url']
if not download_link: if not download_link:
download_link = release['zipball_url'] continue
releases.append({'name': release['name'], releases.append({'name': release['name'],
'body': release['body'], 'body': release['body'],
'date': release['published_at'], 'date': release['published_at'],

Loading…
Cancel
Save