mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 13:33:37 +00:00
Fixes 'Nonetype' not iterable for ObsidianLoader (#12751)
Implements #12726 from @Di3mex
This commit is contained in:
@@ -127,7 +127,9 @@ class ObsidianLoader(BaseLoader):
|
|||||||
}
|
}
|
||||||
|
|
||||||
if tags or front_matter.get("tags"):
|
if tags or front_matter.get("tags"):
|
||||||
metadata["tags"] = ",".join(tags | set(front_matter.get("tags", [])))
|
metadata["tags"] = ",".join(
|
||||||
|
tags | set(front_matter.get("tags", []) or [])
|
||||||
|
)
|
||||||
|
|
||||||
docs.append(Document(page_content=text, metadata=metadata))
|
docs.append(Document(page_content=text, metadata=metadata))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user