Throws an exception if the entry isn't on the whitelist.

def check_entry(*entry):
    """Throws an exception if the entry isn't on the whitelist."""
    whitelist = read_whitelist()
    if not check_allow_prompt(entry, whitelist):
        whitelist.append(entry)
        write_whitelist(whitelist)