fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pep8 etc.
[librarian.git]
/
librarian
/
cover.py
diff --git
a/librarian/cover.py
b/librarian/cover.py
index
7343e68
..
dc64a9c
100644
(file)
--- a/
librarian/cover.py
+++ b/
librarian/cover.py
@@
-121,7
+121,10
@@
class Cover(object):
}
def __init__(self, book_info, format=None):
}
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
self.title = book_info.title
if format is not None:
self.format = format