summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasht <amitgoren12@gmail.com>2020-07-31 00:28:54 +0300
committerGitHub <noreply@github.com>2020-07-31 00:28:54 +0300
commit3b8bd0770bff2486c30012606562e4d90e23d655 (patch)
tree39fb414e86a5b7659ac64a8f55e146899a3c170c
parentd75f98c764be8290f2ae241aa67321bcce938cd6 (diff)
Change isAlive() to is_alive() as isAlive() is unsupported in newer Python versions
-rw-r--r--searx/search.py2
1 files changed, 1 insertions, 1 deletions
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))