Replace self._retries >= 0 by self._retries > 0

This commit is contained in:
Alexandre Flament 2023-10-07 11:24:29 +00:00
parent 05e93f2f21
commit cb8ed088fa
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ class NetworkContextRetryFunction(NetworkContext):
def call(self, func: Callable[P, R], *args: P.args, **kwargs: P.kwargs) -> R: def call(self, func: Callable[P, R], *args: P.args, **kwargs: P.kwargs) -> R:
try: try:
while self._retries >= 0 and self.get_remaining_time() > 0: while self._retries > 0 and self.get_remaining_time() > 0:
self._set_http_client() self._set_http_client()
try: try:
return func(*args, **kwargs) # type: ignore return func(*args, **kwargs) # type: ignore