improve StateManagerRedis error message

This commit is contained in:
Benedikt Bartscher 2024-11-27 15:16:56 +01:00
parent 697e26c25b
commit c0d81eb88b
No known key found for this signature in database

View File

@ -3289,7 +3289,7 @@ class StateManagerRedis(StateManager):
state_cls = self.state.get_class_substate(state_path)
else:
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.