X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/724310b910f3ec0aeb2a1fbd0189d5f588a00f8f..26aa2369c47124fb322236e03084324914aa24af:/librarian/cover.py diff --git a/librarian/cover.py b/librarian/cover.py index 7343e68..dc64a9c 100644 --- a/librarian/cover.py +++ b/librarian/cover.py @@ -121,7 +121,10 @@ class Cover(object): } def __init__(self, book_info, format=None): - self.author = ", ".join(auth.readable() for auth in book_info.authors) + try: + self.author = ", ".join(auth.readable() for auth in book_info.authors) + except AttributeError: + self.author = "" self.title = book_info.title if format is not None: self.format = format