Skip to content

Commit

Permalink
Added a liiiiiiittle timeout before repetitive requests
Browse files Browse the repository at this point in the history
  • Loading branch information
megahomyak committed May 4, 2023
1 parent 7c23578 commit be98752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netschoolapi/async_client_wrapper.py
Expand Up @@ -51,6 +51,6 @@ async def _infinite_request(self, request: httpx.Request, follow_redirects: bool
try:
response = await self.client.send(request, follow_redirects=follow_redirects)
except httpx.ReadTimeout:
pass
await asyncio.sleep(0.1)
else:
return response

0 comments on commit be98752

Please sign in to comment.