Browse Source

Merge pull request #2108 from ashtasht/patch-1

Change isAlive() to is_alive() as isAlive() is unsupported in newer Python versions
Noémi Ványi 4 years ago
parent
commit
0e5197123d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/search.py

+ 1 - 1
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))