mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 20:53:13 -06:00
update/updater.py: removed ConnectionError to handle all possible exceptions
This commit is contained in:
parent
3855407f52
commit
17ccc30d9b
@ -11,7 +11,7 @@ logger = logging.getLogger("updater")
|
|||||||
def do_update(endpoint=application.update_url):
|
def do_update(endpoint=application.update_url):
|
||||||
try:
|
try:
|
||||||
update.perform_update(endpoint=endpoint, current_version=application.version, app_name=application.name, update_available_callback=available_update_dialog, progress_callback=progress_callback, update_complete_callback=update_finished)
|
update.perform_update(endpoint=endpoint, current_version=application.version, app_name=application.name, update_available_callback=available_update_dialog, progress_callback=progress_callback, update_complete_callback=update_finished)
|
||||||
except ConnectionError:
|
except:
|
||||||
if endpoint == application.update_url:
|
if endpoint == application.update_url:
|
||||||
logger.error("Update failed! Using mirror URL...")
|
logger.error("Update failed! Using mirror URL...")
|
||||||
return do_update(endpoint=application.mirror_update_url)
|
return do_update(endpoint=application.mirror_update_url)
|
||||||
|
Loading…
Reference in New Issue
Block a user