Skip to content

Commit 062ee8a

Browse files
committed
chore: add error message for missing tree
1 parent 69dc4a2 commit 062ee8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build_datapackage.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,8 @@ def request_sha(
558558
with niquests.get(data_url, headers=headers) as resp:
559559
trees = resp.json()
560560
return {t["path"]: _to_hash(t["sha"]) for t in trees["tree"]}
561-
raise NotImplementedError
561+
msg = f"Did not find a tree for {DATA!r} in response:\n{root!r}"
562+
raise NotImplementedError(msg)
562563

563564

564565
def _to_hash(s: str, /) -> str:

0 commit comments

Comments
 (0)