We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a300522 + 70c1e51 commit c5bc910Copy full SHA for c5bc910
src/superannotate/lib/infrastructure/validators.py
@@ -27,7 +27,7 @@ def make_literal_validator(
27
def literal_validator(v: typing.Any) -> typing.Any:
28
try:
29
return allowed_choices[v.lower()]
30
- except KeyError:
+ except (KeyError, AttributeError):
31
raise WrongConstantError(given=v, permitted=permitted_choices)
32
33
return literal_validator
0 commit comments