From d8b4c07173cc3bc6b02eb806f567d83a508f57f2 Mon Sep 17 00:00:00 2001 From: Maksym Lysak Date: Tue, 12 Nov 2024 09:50:15 +0100 Subject: [PATCH] returned try-catch on tables handling Signed-off-by: Maksym Lysak --- docling/backend/msword_backend.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docling/backend/msword_backend.py b/docling/backend/msword_backend.py index ff027685..521cb1b0 100644 --- a/docling/backend/msword_backend.py +++ b/docling/backend/msword_backend.py @@ -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)