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.
1 parent 989ffc4 commit 9904e65Copy full SHA for 9904e65
1 file changed
src/services/mwl/__init__.py
@@ -35,5 +35,5 @@ def transition_for(status: str) -> tuple[MWLStatus, MWLStatus]:
35
current_status = MWLStatus(status)
36
previous_status = MWLStatusManager._TRANSITIONS[current_status]
37
return previous_status, current_status
38
- except KeyError:
+ except KeyError, ValueError:
39
raise InvalidStatusTransitionError(f"Cannot transition to '{status}'")
0 commit comments