[BUG] Fix handling of fromstring() for invalid enums #887
Labels
bug
Something isn't working
user_tools
Scope the wrapper module running CSP, QualX, and reports (python)
Currently we depend on
EnumeratedType.fromstring()
to manage invalid enum arguments by raising an exception. However, it returns None for invalid values, instead of throwing an exception. Thus the intended default value, which is set in the exception handling branch, is never applied.For example,
The text was updated successfully, but these errors were encountered: