mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 12:10:00 +00:00
Digg's unit test
This commit is contained in:
@@ -44,7 +44,7 @@ def response(resp):
|
||||
|
||||
search_result = loads(resp.text)
|
||||
|
||||
if search_result['html'] == '':
|
||||
if 'html' not in search_result or search_result['html'] == '':
|
||||
return results
|
||||
|
||||
dom = html.fromstring(search_result['html'])
|
||||
|
||||
Reference in New Issue
Block a user