diff --git a/src/recensio/plone/browser/homepage.py b/src/recensio/plone/browser/homepage.py index c3ab869..123cc50 100644 --- a/src/recensio/plone/browser/homepage.py +++ b/src/recensio/plone/browser/homepage.py @@ -53,7 +53,7 @@ def format_authors(self, brain): first_author = authors[0].to_object if not first_author: return "" - firstname = first_author.firstname.strip() + firstname = first_author.firstname.strip() if first_author.firstname else "" initial = firstname[0] + ". " if len(firstname) > 0 else "" lastname = first_author.lastname et_al = " et al." if len(authors) > 1 else ""