浏览代码

fix unclosed file (#3639)

benedikt-bartscher 10 月之前
父节点
当前提交
460afc2e10
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      reflex/utils/prerequisites.py

+ 1 - 1
reflex/utils/prerequisites.py

@@ -976,7 +976,7 @@ def is_latest_template() -> bool:
     json_file = get_web_dir() / constants.Reflex.JSON
     if not json_file.exists():
         return False
-    app_version = json.load(json_file.open()).get("version")
+    app_version = json.loads(json_file.read_text()).get("version")
     return app_version == constants.Reflex.VERSION