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,
id=entry.id,
date=cls.get_date(entry),
title=entry.title,
summary=entry.description,
link=entry.link,
title=getattr(entry, "title", ""),
summary=getattr(entry, "description", ""),
link=getattr(entry, "link", ""),
) for entry in entries]
async def get_power_levels(self, room_id: RoomID) -> PowerLevelStateEventContent: