From 74f1ca203f625961b3827e21c811a5543f8942ac Mon Sep 17 00:00:00 2001 From: Bnyro Date: Wed, 22 Apr 2026 09:54:46 +0200 Subject: [PATCH] [fix] gmx: crash when there are no related query suggestions --- searx/engines/gmx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/gmx.py b/searx/engines/gmx.py index b362cd3c1..dcd829051 100644 --- a/searx/engines/gmx.py +++ b/searx/engines/gmx.py @@ -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"]: