Ejemplo n.º 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))
Ejemplo n.º 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
Ejemplo n.º 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