improve StateManagerRedis error message (#4444)

This commit is contained in:
benedikt-bartscher 2024-12-13 21:40:38 +01:00 committed by GitHub
parent ff510cacc5
commit 682bca7f9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3350,7 +3350,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.