mirror of
https://github.com/Cinnamon/kotaemon.git
synced 2025-12-16 11:47:48 +01:00
fix: handling null response forom Knet retriever
This commit is contained in:
@@ -101,6 +101,10 @@ class KnetRetrievalPipeline(BaseFileIndexRetriever):
|
||||
if response.status_code == 200:
|
||||
# Load YAML content from the response content
|
||||
chunks = yaml.safe_load(response.content)
|
||||
print(response.content)
|
||||
if chunks is None:
|
||||
return docs
|
||||
|
||||
for chunk in chunks:
|
||||
metadata = chunk["node"].get("metadata")
|
||||
if not metadata:
|
||||
|
||||
Reference in New Issue
Block a user