Handle attribute errors in find_entries

This commit is contained in:
Tulir Asokan 2019-02-14 18:42:39 +02:00
parent 545dda9d0f
commit 6dbb12f2d4

View file

@ -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: