fix: handle AttributeError for datasets and index (#1052)
This commit is contained in:
parent
3db839a5cb
commit
8b8e510bfe
2 changed files with 9 additions and 6 deletions
|
|
@ -406,7 +406,8 @@ class IndexingRunner:
|
|||
filter(UploadFile.id == data_source_info['upload_file_id']). \
|
||||
one_or_none()
|
||||
|
||||
text_docs = FileExtractor.load(file_detail)
|
||||
if file_detail:
|
||||
text_docs = FileExtractor.load(file_detail)
|
||||
elif dataset_document.data_source_type == 'notion_import':
|
||||
loader = NotionLoader.from_document(dataset_document)
|
||||
text_docs = loader.load()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue