diff --git a/src/fundus/publishers/tz/daily_news_tz.py b/src/fundus/publishers/tz/daily_news_tz.py index 81968a5e..d7f94164 100644 --- a/src/fundus/publishers/tz/daily_news_tz.py +++ b/src/fundus/publishers/tz/daily_news_tz.py @@ -16,7 +16,7 @@ class V1(BaseParser): @attribute def title(self) -> Optional[str]: - return re.sub(r"(?i)\s*-\s*(daily\s*news|habari\s*leo)\s*", "", self.precomputed.meta.get("og:title")) + return re.sub(r"(?i)\s*-\s*(daily\s*news|habari\s*leo)\s*", "", self.precomputed.meta.get("og:title") or "") @attribute def body(self) -> Optional[ArticleBody]: