# HG changeset patch # User Goffi # Date 1516784280 -3600 # Node ID 6bc7768faa5df3a4aa9074a280062c7bcc9e5097 # Parent 6b906b1f419a217b35eb422093bc836424c1b186 pages (common/blog): don't fail if author is missing diff -r 6b906b1f419a -r 6bc7768faa5d src/pages/common/blog/page_meta.py --- a/src/pages/common/blog/page_meta.py Wed Jan 24 09:57:57 2018 +0100 +++ b/src/pages/common/blog/page_meta.py Wed Jan 24 09:58:00 2018 +0100 @@ -88,8 +88,11 @@ for blog_item in blog_items: if identities is not None: author = blog_item.author_jid - if author not in identities: - identities[author] = yield self.host.bridgeCall(u'identityGet', author, profile) + if not author: + log.warning(_(u"no author found for item {item_id}").format(item_id=blog_item.id)) + else: + if author not in identities: + identities[author] = yield self.host.bridgeCall(u'identityGet', author, profile) for comment_data in blog_item.comments: service = comment_data[u'service'] node = comment_data[u'node']