Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #49 from megahomyak/master
Browse files Browse the repository at this point in the history
Infinite request retries are working properly now!
  • Loading branch information
megahomyak authored Mar 9, 2022
2 parents 35abd79 + e965ca7 commit 17612d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions netschoolapi/async_client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def __init__(
self, async_client: httpx.AsyncClient,
default_requests_timeout: int = None):
self.client = async_client
self._default_requests_timeout = (
default_requests_timeout or DEFAULT_REQUESTS_TIMEOUT
)
if default_requests_timeout is None:
default_requests_timeout = DEFAULT_REQUESTS_TIMEOUT
self._default_requests_timeout = default_requests_timeout

def make_requester(self, requests_timeout: Optional[int]) -> Requester:
# noinspection PyTypeChecker
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='netschoolapi',
version='7.1.0',
version='7.1.1',
description='Асинхронный API-клиент для «Сетевого города»',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 17612d5

Please sign in to comment.