mirror of
https://github.com/searxng/searxng.git
synced 2026-07-17 21:41:24 +00:00
[fix] neosearch: crashes when result has no url
This commit is contained in:
@@ -48,6 +48,9 @@ def response(resp: "SXNG_Response") -> EngineResults:
|
||||
for lens in json_resp["lenses"]:
|
||||
for category in lens["categories"]:
|
||||
for result in category["links"]:
|
||||
if not result["url"]:
|
||||
continue
|
||||
|
||||
res.add(
|
||||
res.types.MainResult(
|
||||
url=result["url"],
|
||||
|
||||
Reference in New Issue
Block a user