From 3b8bd0770bff2486c30012606562e4d90e23d655 Mon Sep 17 00:00:00 2001 From: asht Date: Fri, 31 Jul 2020 00:28:54 +0300 Subject: [PATCH] Change isAlive() to is_alive() as isAlive() is unsupported in newer Python versions --- searx/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/search.py b/searx/search.py index 24695083c..fcc838225 100644 --- a/searx/search.py +++ b/searx/search.py @@ -234,7 +234,7 @@ def search_multiple_requests(requests, result_container, start_time, timeout_lim if th.name == search_id: remaining_time = max(0.0, timeout_limit - (time() - start_time)) th.join(remaining_time) - if th.isAlive(): + if th.is_alive(): result_container.add_unresponsive_engine(th._engine_name, 'timeout') logger.warning('engine timeout: {0}'.format(th._engine_name))