We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42956ed commit d65b93aCopy full SHA for d65b93a
src/recensio/plone/browser/homepage.py
@@ -53,7 +53,7 @@ def format_authors(self, brain):
53
first_author = authors[0].to_object
54
if not first_author:
55
return ""
56
- firstname = first_author.firstname.strip()
+ firstname = first_author.firstname.strip() if first_author.firstname else ""
57
initial = firstname[0] + ". " if len(firstname) > 0 else ""
58
lastname = first_author.lastname
59
et_al = " et al." if len(authors) > 1 else ""
0 commit comments