returned try-catch on tables handling

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
Maksym Lysak 2024-11-12 09:50:15 +01:00
parent 9569214afb
commit d8b4c07173

View File

@ -141,10 +141,10 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend):
# Check for Tables
if element.tag.endswith("tbl"):
# try:
self.handle_tables(element, docx_obj, doc)
# except Exception:
# _log.debug("could not parse a table, broken docx table")
try:
self.handle_tables(element, docx_obj, doc)
except Exception:
_log.debug("could not parse a table, broken docx table")
elif found_drawing or found_pict:
self.handle_pictures(element, docx_obj, doc)