瀏覽代碼

add timeout errors in search_multiple_requests

Noémi Ványi 7 年之前
父節點
當前提交
80331cc8e6
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      searx/search.py

+ 1
- 0
searx/search.py 查看文件

@@ -179,6 +179,7 @@ def search_multiple_requests(requests, result_container, start_time, timeout_lim
179 179
             remaining_time = max(0.0, timeout_limit - (time() - start_time))
180 180
             th.join(remaining_time)
181 181
             if th.isAlive():
182
+                result_container.add_unresponsive_engine((th._engine_name, gettext('timeout')))
182 183
                 logger.warning('engine timeout: {0}'.format(th._engine_name))
183 184
 
184 185