From 6d6f4e7343625dade05285c5084b60d8ba6ea2df Mon Sep 17 00:00:00 2001 From: user Date: Sun, 15 Feb 2026 21:42:07 +0100 Subject: [PATCH] fix: handle null publishedDate from SearXNG results SearXNG can return "publishedDate": null, which bypasses the default value in dict.get() and passes None to _parse_date / re.search. Co-Authored-By: Claude Opus 4.6 --- plugins/alert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/alert.py b/plugins/alert.py index 9c2cedc..6531c60 100644 --- a/plugins/alert.py +++ b/plugins/alert.py @@ -288,7 +288,7 @@ def _search_searx(keyword: str) -> list[dict]: for item in data.get("results", []): item_url = item.get("url", "") title = item.get("title", "") - date = _parse_date(item.get("publishedDate", "")) + date = _parse_date(item.get("publishedDate") or "") results.append({ "id": item_url, "title": title,