gui.model.FormError

gui.model.FormError()

An entry of a form cannot be turned into an option.

Examples

from spotregen.gui.model import FormError, form_fields, form_options

try:
    form_options(form_fields("mutate"), {"max": "many"})
except FormError as exc:
    print(exc)
--max: 'many' is not a valid value