浏览代码

Digg correction

Cqoicebordel 10 年前
父节点
当前提交
4450ed5503
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      searx/engines/digg.py

+ 3
- 0
searx/engines/digg.py 查看文件

44
 
44
 
45
     search_result = loads(resp.text)
45
     search_result = loads(resp.text)
46
 
46
 
47
+    if search_result['html'] == '':
48
+        return results
49
+
47
     dom = html.fromstring(search_result['html'])
50
     dom = html.fromstring(search_result['html'])
48
 
51
 
49
     # parse results
52
     # parse results