EPUB: Support for subchapters without chapters.
[librarian.git] / src / librarian / elements / figures / tabela.py
index 387041d..af4a436 100644 (file)
@@ -5,7 +5,7 @@ class Tabela(WLElement):
     HTML_TAG = 'table'
 
     def get_html_attr(self, builder):
     HTML_TAG = 'table'
 
     def get_html_attr(self, builder):
-        if self.attrib['ramka'] == '1':
+        if self.attrib.get('ramka', '') == '1':
             return {
                 'class': 'border'
             }
             return {
                 'class': 'border'
             }