mirror of
https://github.com/maubot/rss.git
synced 2025-11-29 06:46:31 -05:00
Handle attribute errors in find_entries
This commit is contained in:
parent
545dda9d0f
commit
6dbb12f2d4
1 changed files with 3 additions and 3 deletions
|
|
@ -141,9 +141,9 @@ class RSSBot(Plugin):
|
||||||
feed_id=feed_id,
|
feed_id=feed_id,
|
||||||
id=entry.id,
|
id=entry.id,
|
||||||
date=cls.get_date(entry),
|
date=cls.get_date(entry),
|
||||||
title=entry.title,
|
title=getattr(entry, "title", ""),
|
||||||
summary=entry.description,
|
summary=getattr(entry, "description", ""),
|
||||||
link=entry.link,
|
link=getattr(entry, "link", ""),
|
||||||
) for entry in entries]
|
) for entry in entries]
|
||||||
|
|
||||||
async def get_power_levels(self, room_id: RoomID) -> PowerLevelStateEventContent:
|
async def get_power_levels(self, room_id: RoomID) -> PowerLevelStateEventContent:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue