@_git_check
def last_checked_for_updates(gitrepo):
    retval = 0

    config = get_jigconfig(gitrepo)

    try:
        timestamp = int(config.get('jig', 'last_checked_for_updates'))
        retval = datetime.utcfromtimestamp(timestamp)
    except (NoSectionError, NoOptionError, ValueError):
        pass

    return retval
This provides a flexible sanity check.
dataset/ETHPy150Open robmadole/jig/src/jig/plugins/tools.py/last_checked_for_updates--crossover with--dataset/ETHPy150Open openstack/compass-core/compass/actions/cli.py/BootCLI.run_check