def run_autoupdate(): install_time = get_install_time() try: sync.client().updates(install_time) except sync.civsync.UpdateRequiredError as err: with ui.execute_later_lock: ui.execute_later.append(lambda: notify_update(err.url))
def run_autoupdate(): install_time = sync.get_install_time() try: sync.client().updates(install_time) except sync.civsync.UpdateRequiredError as err: notify_update(err.url) except Exception as err: print 'Failed to autoupdate:', err