improve StateManagerRedis error message
This commit is contained in:
parent
697e26c25b
commit
c0d81eb88b
@ -3289,7 +3289,7 @@ class StateManagerRedis(StateManager):
|
|||||||
state_cls = self.state.get_class_substate(state_path)
|
state_cls = self.state.get_class_substate(state_path)
|
||||||
else:
|
else:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
"StateManagerRedis requires token to be specified in the form of {token}_{state_full_name}"
|
f"StateManagerRedis requires token to be specified in the form of {{token}}_{{state_full_name}}, but got {token}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The deserialized or newly created (sub)state instance.
|
# The deserialized or newly created (sub)state instance.
|
||||||
|
Loading…
Reference in New Issue
Block a user