Commits

Nikolaj Sjujskij committed a4810e5

Don't fail if author isn't mentioned in rST document

Comments (0)

Files changed (1)

rst2epub/package.py

 
     def add_creator(self, author):
         """See 2.2.2 in [OPF20]_."""
-        self._create_dc_metadata_element("creator", author)
+        if author is not None:
+            self._create_dc_metadata_element("creator", author)
 
     def add_subject(self):
         """See 2.2.3 in [OPF20]_."""