Skip to content

Commit

Permalink
Fix bug where kwargs were not being passed into request
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Nov 20, 2024
1 parent cfd820c commit ffbe9a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/generate_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,13 @@ def mk_github_urls(packages: list[tuple[str, str]]) -> tuple[dict[str, typing.An

def mk_request(session: requests.Session, method: str, url: str, **kwargs) -> requests.Response | None:
try:
response = session.request(method, url, allow_redirects=True, timeout=30)
response = session.request(method, url, allow_redirects=True, timeout=30, **kwargs)
return response
except requests.HTTPError as e:
logger.error("Failed to fetch %s: %s", url, e)

return None


def verify_tar_urls(session: requests.Session, dep_urls: dict[str, typing.Any]):
github_names = sorted(dep_urls.keys())
Expand Down

0 comments on commit ffbe9a7

Please sign in to comment.