Change isAlive() to is_alive() as isAlive() is unsupported in newer Python versions
commit3b8bd0770bff2486c30012606562e4d90e23d655
authorasht <amitgoren12@gmail.com>
dateFri 31 Jul 2020, 00:28 (6 years ago)
parentd75f98c
searx/search.py+1−1
@@ -234,7 +234,7 @@ def search_multiple_requests(requests, result_container, start_time, timeout_lim
234234 if th.name == search_id:
235235 remaining_time = max(0.0, timeout_limit - (time() - start_time))
236236 th.join(remaining_time)
237− if th.isAlive():
237+ if th.is_alive():
238238 result_container.add_unresponsive_engine(th._engine_name, 'timeout')
239239 logger.warning('engine timeout: {0}'.format(th._engine_name))
240240