mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 12:48:28 +00:00
fix(HTML): remove an unnecessary print command (#1988)
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8227841c1b
commit
945721a15d
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user