Skip to content

Commit

Permalink
[mod] disable Tor network check
Browse files Browse the repository at this point in the history
Prevent unexpected crashes due to the Tor proxy not responding in time.
  • Loading branch information
tiekoetter committed Aug 17, 2024
1 parent 406b220 commit f96b76e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions searx/network/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit f96b76e

Please sign in to comment.