mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 11:18:08 -06:00
Updater commit fixed
This commit is contained in:
commit
ec326ed1c1
@ -24,12 +24,6 @@ current_soundpack = string(default="default")
|
||||
sndup_api_key = string(default="")
|
||||
|
||||
[other_buffers]
|
||||
show_friends = boolean(default=True)
|
||||
show_followers = boolean(default=True)
|
||||
show_favourites = boolean(default=True)
|
||||
show_events = boolean(default=True)
|
||||
show_blocks = boolean(default=False)
|
||||
show_muted_users = boolean(default=False)
|
||||
timelines = list(default=list())
|
||||
tweet_searches = list(default=list())
|
||||
lists = list(default=list())
|
||||
|
@ -3,10 +3,13 @@ import application
|
||||
import update
|
||||
import platform
|
||||
from wxUpdater import *
|
||||
from requests.exceptions import ConnectionError
|
||||
import logging
|
||||
import output
|
||||
logger = logging.getLogger("updater")
|
||||
|
||||
def do_update():
|
||||
try:
|
||||
return update.perform_update(endpoint=application.update_url, 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:
|
||||
pass
|
||||
try:
|
||||
return update.perform_update(endpoint=application.update_url, current_version=application.version, app_name=application.name, update_available_callback=available_update_dialog, progress_callback=progress_callback, update_complete_callback=update_finished)
|
||||
except:
|
||||
logger.exception("Update failed.")
|
||||
output.speak("An exception occurred while attempting to update " + application.name + ". If this message persists, contact the " + application.name + " developers. More information about the exception has been written to the error log.",True)
|
Loading…
Reference in New Issue
Block a user