mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 04:00:02 +00:00
Searchcode engines corrections
This commit is contained in:
@@ -35,7 +35,7 @@ def response(resp):
|
||||
search_results = loads(resp.text)
|
||||
|
||||
# parse results
|
||||
for result in search_results['results']:
|
||||
for result in search_results.get('results', []):
|
||||
href = result['url']
|
||||
title = "[" + result['type'] + "] " +\
|
||||
result['namespace'] +\
|
||||
|
||||
Reference in New Issue
Block a user