From 69e7524fc9e380e22e76fbea2f8bc18b7288c303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Tiek=C3=B6tter?= Date: Sat, 23 Jul 2022 21:05:37 +0200 Subject: [PATCH] [mod] disable Tor network check Prevent unexpected crashes due to the Tor proxy not responding in time. --- searx/network/network.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/searx/network/network.py b/searx/network/network.py index 453c8d2fc06..b709188f5ae 100644 --- a/searx/network/network.py +++ b/searx/network/network.py @@ -303,13 +303,6 @@ def get_network(name=None): def check_network_configuration(): async def check(): exception_count = 0 - for network in NETWORKS.values(): - if network.using_tor_proxy: - try: - await network.get_client() - except Exception: # pylint: disable=broad-except - network._logger.exception('Error') # pylint: disable=protected-access - exception_count += 1 return exception_count future = asyncio.run_coroutine_threadsafe(check(), get_loop())