mirror of https://github.com/searxng/searxng.git
[mod] add more error handling to json engine II.
This commit is contained in:
parent
181f1c6305
commit
7a9b18e9e9
|
@ -102,8 +102,11 @@ def response(resp):
|
||||||
if not len(rs):
|
if not len(rs):
|
||||||
return results
|
return results
|
||||||
for result in rs[0]:
|
for result in rs[0]:
|
||||||
url = query(result, url_query)[0]
|
try:
|
||||||
title = query(result, title_query)[0]
|
url = query(result, url_query)[0]
|
||||||
|
title = query(result, title_query)[0]
|
||||||
|
except:
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
content = query(result, content_query)[0]
|
content = query(result, content_query)[0]
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue