fix unclosed file (#3639)

This commit is contained in:
benedikt-bartscher 2024-07-11 20:20:54 +02:00 committed by GitHub
parent d4d077818c
commit 460afc2e10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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