|
@@ -339,7 +339,9 @@ class DocxConvert:
|
|
|
if tag == "w:tbl":
|
|
|
if len(table_list) > 0:
|
|
|
_table = table_list.pop(0)
|
|
|
- self._page.add_child(_Table(_table, bbox))
|
|
|
+ _table = _Table(_table, bbox)
|
|
|
+ _table.is_html = True
|
|
|
+ self._page.add_child(_table)
|
|
|
order_y += 1
|
|
|
|
|
|
if self._doc.error_code is None and self._page.error_code is not None:
|
|
@@ -391,7 +393,11 @@ class DocxConvert:
|
|
|
return self._doc
|
|
|
|
|
|
def get_html(self):
|
|
|
- self.convert()
|
|
|
+ try:
|
|
|
+ self.convert()
|
|
|
+ except:
|
|
|
+ traceback.print_exc()
|
|
|
+ self._doc.error_code = [-1]
|
|
|
if self._doc.error_code is not None:
|
|
|
return self._doc.error_code
|
|
|
return self._doc.get_html()
|