change(ci): log json decode error in durations

This commit is contained in:
ethernet 2026-06-26 20:27:05 -04:00
parent 707ae6e623
commit 1a75387fa8

View file

@ -469,7 +469,8 @@ def _load_durations(repo_root: Path) -> dict[str, float]:
return {}
try:
return json.loads(path.read_text())
except (json.JSONDecodeError, OSError):
except (json.JSONDecodeError, OSError) as e:
print("[ERROR] Failed to load json durations file! {e}")
return {}