X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/26fba30d99a051b3779a36f332993795d7f1c376..a04f11baee3eb7d090867c2d5639a120ec3217b8:/librarian/epub.py diff --git a/librarian/epub.py b/librarian/epub.py index 8ef436e..1ea2688 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -502,8 +502,10 @@ def transform(wldoc, verbose=False, document.edoc.getroot().set(flag, 'yes') # add editors info - document.edoc.getroot().set('editors', u', '.join(sorted( - editor.readable() for editor in document.editors()))) + editors = document.editors() + if editors: + document.edoc.getroot().set('editors', u', '.join(sorted( + editor.readable() for editor in editors))) if document.book_info.funders: document.edoc.getroot().set('funders', u', '.join( document.book_info.funders))