Skip to content

Commit

Permalink
fix: Wrap all requests with auth
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Oct 8, 2024
1 parent 9768495 commit c38c235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/vendor_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _request_trees(tag: str | Any, /) -> GitHubTreesResponse:
content: GitHubTreesResponse = json.load(response)
query = (tree["url"] for tree in content["tree"] if tree["path"] == _SUB_DIR)
if data_url := next(query, None):
with urlopen(data_url) as response:
with urlopen(_request_github(data_url)) as response:
data_dir: GitHubTreesResponse = json.load(response)
return data_dir
else:
Expand Down

0 comments on commit c38c235

Please sign in to comment.