We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f7fcf4 commit 9ab4cbfCopy full SHA for 9ab4cbf
wdoc/utils/loaders.py
@@ -440,7 +440,7 @@ def load_one_doc(
440
recur_parent_id: str = None, # just used to keep track of which document comes from which recursive filetype
441
subitem_link: str = None,
442
**kwargs,
443
-) -> List[Document]:
+) -> List[Union[Document, str]]: # returns a str if an error happened
444
"""choose the appropriate loader for a file, then load it,
445
split into documents, add some metadata then return.
446
The loader is cached"""
0 commit comments