mirror of
https://github.com/searx/searx
synced 2025-08-31 06:26:28 +00:00
[fix] handling empty resultset II.
This commit is contained in:
@@ -18,7 +18,7 @@ def response(resp):
|
||||
search_res = loads(resp.text)
|
||||
if 'responseData' not in search_res:
|
||||
return []
|
||||
if 'results' not in search_res['responseData']:
|
||||
if 'results' not in search_res['responseData'] and search_res['responseData']['results']:
|
||||
return []
|
||||
for result in search_res['responseData']['results']:
|
||||
url = result['originalContextUrl']
|
||||
|
Reference in New Issue
Block a user