def pot_check(outfile):
    """
    Simple check if crackq potfile wordlist has been updated today

    Arguments
    ---------
    outfile: string
        location of wordlist file

    Returns
    -------
    ret: boolean
        If file has been updated in the past 24 hours return true else false
    """
    logger.debug('Checking pot wordlist is up-to-date')
    try:
        file_stat = int(outfile.stat().st_mtime)
        edit_time = int(time.time()) - file_stat
        ret = True if edit_time < 86400 else False
    except (IOError, FileNotFoundError) as err:
        logger.debug('Pot wordlist files not found, creating new file: {}'.format(err))
        with outfile.open('w+'):
            logger.debug('Do nothing')
        ret = False
    except Exception as err:
        logger.debug('Pot wordlist file update error: {}'.format(err))
        ret = False
    return ret

    Simple check if crackq potfile wordlist has been updated today

    Arguments
    ---------
    outfile: string
        location of wordlist file

    Returns
    -------
    ret: boolean
        If file has been updated in the past 24 hours return true else false
    
crackq/run_hashcat.py