Преглед на файлове

improve StateManagerRedis error message (#4444)

benedikt-bartscher преди 5 месеца
родител
ревизия
682bca7f9a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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.