mirror of
https://github.com/searxng/searxng.git
synced 2026-05-07 18:03:51 +02:00
[fix] gmx: crash when there are no related query suggestions
This commit is contained in:
@@ -80,7 +80,7 @@ def response(resp: 'SXNG_Response') -> EngineResults:
|
||||
|
||||
results = resp.json()["results"]
|
||||
|
||||
for suggestion in results["rs"]:
|
||||
for suggestion in results.get("rs", []):
|
||||
res.add(res.types.LegacyResult({"suggestion": suggestion["t"]}))
|
||||
|
||||
for result in results["hits"]:
|
||||
|
||||
Reference in New Issue
Block a user