diff options
author | asht <amitgoren12@gmail.com> | 2020-07-31 00:28:54 +0300 |
---|---|---|
committer | Johannes 'josch' Schauer <josch@debian.org> | 2020-12-28 05:52:26 +0100 |
commit | 8d91ae05e16a6c1c7b62578027fe7f63a8cea36c (patch) | |
tree | 662075b01885a42173a8ba7fde49cdc767e0a9ba | |
parent | ee547af52acb1742a809e60c37ff22ba007e1d18 (diff) |
[PATCH] Change isAlive() to is_alive() as isAlive() is unsupported in newer Python versions
Gbp-Pq: Name 0001-Change-isAlive-to-is_alive-as-isAlive-is-unsupported.patch
-rw-r--r-- | searx/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/search.py b/searx/search.py index 2469508..fcc8382 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)) |