소스 검색

Digg correction

Cqoicebordel 10 년 전
부모
커밋
4450ed5503
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3
    0
      searx/engines/digg.py

+ 3
- 0
searx/engines/digg.py 파일 보기

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