Merge pull request #2108 from ashtasht/patch-1
Change isAlive() to is_alive() as isAlive() is unsupported in newer Python versions
commit0e5197123dd4282b324414f46d9fb0f41faa7c60
authorNoémi Ványi <kvch@users.noreply.github.com>
dateSat 1 Aug 2020, 22:00 (6 years ago)
parentc8986ec9353212
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