Skip to content

Commit

Permalink
chore: add error message for missing tree
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Jan 12, 2025
1 parent 69dc4a2 commit 062ee8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build_datapackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@ def request_sha(
with niquests.get(data_url, headers=headers) as resp:
trees = resp.json()
return {t["path"]: _to_hash(t["sha"]) for t in trees["tree"]}
raise NotImplementedError
msg = f"Did not find a tree for {DATA!r} in response:\n{root!r}"
raise NotImplementedError(msg)


def _to_hash(s: str, /) -> str:
Expand Down

0 comments on commit 062ee8a

Please sign in to comment.