Skip to content

Commit

Permalink
improve StateManagerRedis error message (#4444)
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-bartscher authored Dec 13, 2024
1 parent ff510ca commit 682bca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflex/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -3350,7 +3350,7 @@ async def get_state(
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.
Expand Down

0 comments on commit 682bca7

Please sign in to comment.