mirror of https://github.com/searxng/searxng.git
Replace self._retries >= 0 by self._retries > 0
This commit is contained in:
parent
05e93f2f21
commit
cb8ed088fa
|
@ -243,7 +243,7 @@ class NetworkContextRetryFunction(NetworkContext):
|
|||
|
||||
def call(self, func: Callable[P, R], *args: P.args, **kwargs: P.kwargs) -> R:
|
||||
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()
|
||||
try:
|
||||
return func(*args, **kwargs) # type: ignore
|
||||
|
|
Loading…
Reference in New Issue