From 682bca7f9a7b6d8c531a2f3192acb70fa68c3a95 Mon Sep 17 00:00:00 2001 From: benedikt-bartscher <31854409+benedikt-bartscher@users.noreply.github.com> Date: Fri, 13 Dec 2024 21:40:38 +0100 Subject: [PATCH] improve StateManagerRedis error message (#4444) --- reflex/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/state.py b/reflex/state.py index aa40a8418a..e454746a9b 100644 --- a/reflex/state.py +++ b/reflex/state.py @@ -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.