diff --git a/searx/network/context.py b/searx/network/context.py index b480749bf..99a335024 100644 --- a/searx/network/context.py +++ b/searx/network/context.py @@ -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