Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
addie9800 committed Dec 23, 2024
1 parent 915ccae commit 0c0c1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fundus/publishers/tz/daily_news_tz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 0c0c1de

Please sign in to comment.