mirror of
https://github.com/searxng/searxng.git
synced 2025-07-19 03:09:25 +02:00
Digg's unit test
This commit is contained in:
parent
92368a4107
commit
1d255061c7
3 changed files with 59 additions and 1 deletions
|
@ -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'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue