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
An entry of a form cannot be turned into an option.