BadValueError

exception audformat.errors.BadValueError(invalid_value, valid_values)[source]

Raised when a value is not in a list of pre-defined strings.

Parameters
  • invalid_value (str) – value causing the error

  • valid_values (Sequence[str]) – list of valid strings