Explorar o código

improve StateManagerRedis error message (#4444)

benedikt-bartscher hai 5 meses
pai
achega
682bca7f9a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      reflex/state.py

+ 1 - 1
reflex/state.py

@@ -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.