Skip to content

Commit

Permalink
refactor(rss): improve log message clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Aug 5, 2024
1 parent ae1e87c commit d7721ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qtribu/logic/news_feed/rss_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ def __init__(
self.action_read = action_read
self.on_read_button = on_read_button

def process(self):
def process(self) -> None:
"""Download, parse and read RSS feed than store items as attribute."""
# download remote RSS feed to cache folder
self.download_feed()
if not self.local_feed_filepath.exists():
self.log(
message=self.tr(
"The RSS feed is not available locally. "
"Disabling RSS reader related features."
f"The RSS feed is not available locally: {self.local_feed_filepath}. "
"Features related to the RSS reader are disabled."
),
log_level=1,
)
Expand Down

0 comments on commit d7721ad

Please sign in to comment.