Skip to content

Commit f5340b5

Browse files
committed
return empty list if no pub. author
1 parent b7b96c9 commit f5340b5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/somesy/core/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,9 @@ def publication_authors(self):
435435
436436
This always includes people marked as authors.
437437
"""
438+
# return an empty list if no publication authors are specified
439+
if not any(map(lambda p: p.publication_author, self.people)):
440+
return []
438441
return [p for p in self.people if p.publication_author]
439442

440443
def maintainers(self):

0 commit comments

Comments
 (0)