def METHOD_NAME():
    try:
        hookenv.application_version_set(candid.get_version())
        hookenv.status_set('active', '')
    except Exception as e:
        hookenv.log("cannot get version: {}".format(e), level="warning")