Skip to content

Commit

Permalink
Change: Fix endless loop in GitHubAsyncRESTClient.get_all
Browse files Browse the repository at this point in the history
  • Loading branch information
n-thumann authored and greenbonebot committed Dec 16, 2024
1 parent 25361ff commit 8276024
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pontos/github/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ async def get_all(
next_url = _get_next_url(response)

while next_url:
response = await self.get(next_url, params=params)
# Workaround for https://github.com/encode/httpx/issues/3433
new_params = httpx.URL(next_url).params.merge(params)
response = await self.get(next_url, params=new_params)

yield response

Expand Down

0 comments on commit 8276024

Please sign in to comment.