Only write translators on cover if they fit.
[librarian.git] / src / librarian / elements / figures / ilustr.py
index c6105f4..af936fb 100644 (file)
@@ -43,8 +43,8 @@ class Ilustr(WLElement):
         
         return {
             'src': file_name,
-            'alt': self.attrib['alt'],
-            'title': self.attrib['alt'],
+            'alt': self.attrib.get('alt', ''),
+            'title': self.attrib.get('alt', ''),
         }
 
     get_epub_attr = get_html_attr