From 42b60063f6a80fb905acd677bd151dfaa64a44ba Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 3 Apr 2026 13:26:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/utils/update_check.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/studio/backend/utils/update_check.py b/studio/backend/utils/update_check.py index c943f59699..b6005d5623 100644 --- a/studio/backend/utils/update_check.py +++ b/studio/backend/utils/update_check.py @@ -60,13 +60,13 @@ def fetch_and_cache_update_status() -> UpdateStatus: global _cached_status try: - req = urllib.request.Request(_MANIFEST_URL, method="GET") - with urllib.request.urlopen(req, timeout=_FETCH_TIMEOUT) as resp: + req = urllib.request.Request(_MANIFEST_URL, method = "GET") + with urllib.request.urlopen(req, timeout = _FETCH_TIMEOUT) as resp: manifest = json.loads(resp.read().decode("utf-8")) except Exception: return _cached_status - status = UpdateStatus(manifest_fetched=True) + status = UpdateStatus(manifest_fetched = True) # -- Critical time check -- critical_time_str = manifest.get("CRITICAL_TIME") @@ -76,9 +76,7 @@ def fetch_and_cache_update_status() -> UpdateStatus: installed_ts = 0.0 if _STUDIO_INFO_PATH.is_file(): try: - info = json.loads( - _STUDIO_INFO_PATH.read_text(encoding="utf-8") - ) + info = json.loads(_STUDIO_INFO_PATH.read_text(encoding = "utf-8")) installed_ts = _parse_iso_utc(info.get("installed_at_utc", "")) except Exception: pass