Checks if publisher fields is present (it isn't on works)

This commit is contained in:
Mouse Reeve 2021-03-16 13:54:15 -07:00
parent 6755137bad
commit 9251883d77

View file

@ -96,7 +96,7 @@ class Book(BookDataModel):
if self.languages and self.languages[0] != "English"
else None,
str(self.published_date.year) if self.published_date else None,
", ".join(self.publishers),
", ".join(self.publishers) if hasattr(self, "publishers") else None,
]
return ", ".join(i for i in items if i)