on master help sign in
Digg correction

Return no result instead of crashing if no result

commit4450ed5503ab9f7b4d0dc1849837523bbe3b56dd authorCqoicebordel <Cqoicebordel@users.noreply.github.com> dateSat 3 Jan 2015, 23:54 (12 years ago) parent7b531c6
1 file changed+3
searx/engines/digg.py+3
searx/engines/digg.py+3
@@ -44,6 +44,9 @@ def response(resp):
4444
4545 search_result = loads(resp.text)
4646
47+ if search_result['html'] == '':
48+ return results
49+
4750 dom = html.fromstring(search_result['html'])
4851
4952 # parse results