Skip to content

Commit

Permalink
Merge pull request #2838 from chaoss/use-key-manager
Browse files Browse the repository at this point in the history
Use key manager in github data access
  • Loading branch information
sgoggins authored Jun 29, 2024
2 parents 249cf37 + 628a1a2 commit 9ba79f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions augur/tasks/github/util/github_data_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ def make_request(self, url, method="GET", timeout=100):

with httpx.Client() as client:

response = client.request(method=method, url=url, timeout=timeout, follow_redirects=True)
response = client.request(method=method, url=url, auth=self.key_manager, timeout=timeout, follow_redirects=True)

if response.status_code in [403, 429]:
raise RatelimitException(response)

elif response.status_code == 404:
if response.status_code == 404:
raise UrlNotFoundException(f"Could not find {url}")

response.raise_for_status()
Expand Down

0 comments on commit 9ba79f0

Please sign in to comment.