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,