Skip to content

Commit

Permalink
fix crash on null feed description
Browse files Browse the repository at this point in the history
fixes #36
  • Loading branch information
xgi committed May 21, 2019
1 parent 9a587d4 commit 0c23b68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion castero/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,10 @@ def title(self) -> str:
@property
def description(self) -> str:
"""str: the description of the feed"""
return self._description
result = self._description
if result is None:
result = "Description not available."
return result

@property
def link(self) -> str:
Expand Down

0 comments on commit 0c23b68

Please sign in to comment.