SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] flaticon: crash if result tag has no name (#6219)
Bnyro86903a2c666d
diff --git a/searx/engines/flaticon.py b/searx/engines/flaticon.pyindex 06b6a8e25..ab1bd654d 100644--- a/searx/engines/flaticon.py+++ b/searx/engines/flaticon.py@@ -53,10 +53,13 @@ def response(resp: "SXNG_Response"):result: dict[str, str] # TBH: dict[str, t.Any]for result in resp.json()["items"]:+ tags = [+ tag_info["tag"] for tag_info in result["tags"] if tag_info["tag"] # pyright: ignore[reportArgumentType]+ ]res.add(res.types.Image(title=result["name"],- content=", ".join([tag["tag"] for tag in result["tags"]]), # pyright: ignore[reportArgumentType]+ content=", ".join(tags),url=_fix_url(result["slug"]),thumbnail_src=_fix_url(result["png"]),img_src=_fix_url(result["png512"]),