From 945721a15dde80bbf836df8d87f278cf9a1baa51 Mon Sep 17 00:00:00 2001 From: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> Date: Fri, 25 Jul 2025 08:45:15 +0200 Subject: [PATCH] fix(HTML): remove an unnecessary print command (#1988) Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> --- docling/backend/html_backend.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docling/backend/html_backend.py b/docling/backend/html_backend.py index dffc095b..0c07994a 100644 --- a/docling/backend/html_backend.py +++ b/docling/backend/html_backend.py @@ -1,6 +1,5 @@ import logging import re -import traceback from io import BytesIO from pathlib import Path from typing import Final, Optional, Union, cast @@ -144,11 +143,7 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend): ) # reset context self.ctx = _Context() - - try: - self._walk(content, doc) - except Exception: - print(traceback.format_exc()) + self._walk(content, doc) return doc