From 6149f36c7fa659b9d62f6e1e737f2a729517622d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 17 Dec 2020 13:55:31 -0800 Subject: [PATCH] Fixes bug in alt text breaing serializing work --- 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 a6b2774d1..5dece504b 100644 --- a/bookwyrm/models/book.py +++ b/bookwyrm/models/book.py @@ -63,7 +63,7 @@ class Book(ActivitypubMixin, BookWyrmModel): def edition_info(self): ''' properties of this edition, as a string ''' items = [ - self.physical_format, + self.physical_format if hasattr(self, 'physical_format') else None, self.languages[0] + ' language' if self.languages and \ self.languages[0] != 'English' else None, str(self.published_date.year) if self.published_date else None,