示例#1
0
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))
示例#2
0
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
示例#3
0
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