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