Skip to content

Commit a79866f

Browse files
fix: enforce EXCLUDED_FROM_GATE at check time and harden file reads
1 parent bdce5ae commit a79866f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/check_benchmark_regression.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def load_baseline_means(baselines_path: str | Path) -> dict[str, float]:
6060
try:
6161
data = json.loads(path.read_text(encoding="utf-8"))
6262
except OSError as exc:
63+
raise BenchmarkDataError(f"cannot read {path}: {exc}") from exc
6364
except json.JSONDecodeError as exc:
6465
raise BenchmarkDataError(f"invalid JSON in {path}: {exc}") from exc
6566
if not isinstance(data, dict):

0 commit comments

Comments
 (0)