diff --git a/src/fundus/scraping/url.py b/src/fundus/scraping/url.py index 9c154a7a..52ac6459 100644 --- a/src/fundus/scraping/url.py +++ b/src/fundus/scraping/url.py @@ -90,8 +90,7 @@ def __iter__(self) -> Iterator[str]: logger.warning(f"Warning! Couldn't parse rss feed {self.url!r} because of {exception}") return else: - for url in (entry["link"] for entry in rss_feed["entries"]): - yield url + yield from filter(bool, (entry.get("link") for entry in rss_feed["entries"])) @dataclass