def retry_if_not_value_error(exception):
    """Forces retry to exit if a valueError is returned. Supplied to the
    'retry_on_exception' argument in the retry decorator.

    Args:
        exception (Exception): the raised exception, to check

    Returns:
        (bool): False if a ValueError, else True
    """
    return not isinstance(exception, ValueError)