(*args)
return validation_result
Like validate_key, but throws a ValueError when invalid.
Like validate_key, but throws a ValueError when invalid.
Like validate_key but throws a ValueError when invalid .
def validate_key_throw(*args):
    """
    Like validate_key, but throws a ValueError when invalid.
    """
    validation_result = validate_key(*args)
    if not validation_result:
        raise ValueError(str(validation_result))
    return validation_result
def validate_key_throw ( * args ) : validation_result = validate_key ( * args ) if not validation_result : raise ValueError ( str ( validation_result ) ) return validation_result