From 9251883d77337b13ef22b379009d4be2146d8b6a Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 16 Mar 2021 13:54:15 -0700 Subject: [PATCH] Checks if publisher fields is present (it isn't on works) --- bookwyrm/models/book.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/models/book.py b/bookwyrm/models/book.py index 2b518b822..e6aa4d065 100644 --- a/bookwyrm/models/book.py +++ b/bookwyrm/models/book.py @@ -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)