summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoémi Ványi <kvch@users.noreply.github.com>2020-08-01 22:00:18 +0200
committerGitHub <noreply@github.com>2020-08-01 22:00:18 +0200
commit0e5197123dd4282b324414f46d9fb0f41faa7c60 (patch)
tree2ca7103c012b8ff8d235f79a426dce2408baafcf
parentc8986ec5d40c4ad7e30ce322f91d50cdc417d4ed (diff)
parent935321226b2e3ded8276e50c0a0b4fa311e3c424 (diff)
Merge pull request #2108 from ashtasht/patch-1
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))