mirror of
https://github.com/aserper/masto-rss.git
synced 2025-12-17 05:15:25 +00:00
chore: replace flake8 and black with ruff
This commit is contained in:
4
bot.py
4
bot.py
@@ -95,9 +95,7 @@ class MastodonRSSBot:
|
||||
try:
|
||||
feed = feedparser.parse(feed_url)
|
||||
if hasattr(feed, "bozo_exception"):
|
||||
logger.warning(
|
||||
f"Feed parsing issue for {feed_url}: {feed.bozo_exception}"
|
||||
)
|
||||
logger.warning(f"Feed parsing issue for {feed_url}: {feed.bozo_exception}")
|
||||
return feed
|
||||
except Exception as e:
|
||||
logger.error(f"Error parsing feed {feed_url}: {e}")
|
||||
|
||||
Reference in New Issue
Block a user