def if_rescrape(user_rescrape):
    """
    If you want to re_scrape. If someone is a dumbass and feeds it a non-boolean it terminates the program

    Note: Only matters when you have a directory specified

    :param user_rescrape: Boolean

    :return: None
    """
    global re_scrape
    if isinstance(user_rescrape, bool):
        re_scrape = user_rescrape
    else:
        raise ValueError("Error: 'if_rescrape' must be a boolean. Not a {}"
            .format(type(user_rescrape)))
