Skip to content

Commit 8276024

Browse files
n-thumanngreenbonebot
authored andcommitted
Change: Fix endless loop in GitHubAsyncRESTClient.get_all
1 parent 25361ff commit 8276024

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pontos/github/api/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ async def get_all(
154154
next_url = _get_next_url(response)
155155

156156
while next_url:
157-
response = await self.get(next_url, params=params)
157+
# Workaround for https://github.com/encode/httpx/issues/3433
158+
new_params = httpx.URL(next_url).params.merge(params)
159+
response = await self.get(next_url, params=new_params)
158160

159161
yield response
160162

0 commit comments

Comments
 (0)