From 0edc99ad884dd8e22e2fafc84fd08eeb1f731c66 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Sat, 5 Sep 2026 19:14:57 +0200 Subject: [PATCH] fix(sadeedbench): clear error for non-path, non-HF-id --data values A nonexistent path was falling through to the HF resolver and dying with its validation error instead of saying what was wrong. --- src/sadeedbench/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sadeedbench/cli.py b/src/sadeedbench/cli.py index 04b7d6a..41751fe 100644 --- a/src/sadeedbench/cli.py +++ b/src/sadeedbench/cli.py @@ -49,6 +49,11 @@ def _load_gold(data: str) -> list[str]: p = Path(data) if p.exists(): return pd.read_parquet(p)["output"].tolist() + if "/" in data and not data.count("/") == 1: + raise SystemExit( + f"--data {data!r} is neither an existing file nor a " + "namespace/dataset HF id" + ) import huggingface_hub snapshot = Path(