浏览代码

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.