From 45d1380f95805e85bbffd53cf18adf3ac3841d4e Mon Sep 17 00:00:00 2001 From: Bill Dengler Date: Mon, 4 May 2015 16:40:32 -0400 Subject: [PATCH 1/2] Remove unneeded config entries. --- src/Conf.defaults | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Conf.defaults b/src/Conf.defaults index abf23e8d..7e2ad252 100644 --- a/src/Conf.defaults +++ b/src/Conf.defaults @@ -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()) From 780adeb001a976fe41a3bd3675fd4cdf10c95c13 Mon Sep 17 00:00:00 2001 From: Bill Dengler Date: Tue, 5 May 2015 11:18:40 -0400 Subject: [PATCH 2/2] Handle exceptions on update, added this because update server is down. --- src/update/updater.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/update/updater.py b/src/update/updater.py index d5635738..0336209e 100644 --- a/src/update/updater.py +++ b/src/update/updater.py @@ -3,9 +3,12 @@ import application import update import platform from wxUpdater import * - +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: -# pass \ No newline at end of file + 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) \ No newline at end of file