mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
fix(HTML): remove an unnecessary print command
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
This commit is contained in:
parent
8227841c1b
commit
cb0817de76
@ -1,6 +1,5 @@
|
|||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import traceback
|
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Final, Optional, Union, cast
|
from typing import Final, Optional, Union, cast
|
||||||
@ -144,11 +143,7 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
)
|
)
|
||||||
# reset context
|
# reset context
|
||||||
self.ctx = _Context()
|
self.ctx = _Context()
|
||||||
|
|
||||||
try:
|
|
||||||
self._walk(content, doc)
|
self._walk(content, doc)
|
||||||
except Exception:
|
|
||||||
print(traceback.format_exc())
|
|
||||||
|
|
||||||
return doc
|
return doc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user