fix: ensure doc list is not empty
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Notify Downstream / notify-downstream (push) Waiting to run

This commit is contained in:
Greyson LaLonde
2026-01-26 05:08:01 -05:00
committed by GitHub
parent 06a58e463c
commit a32de6bdac

View File

@@ -99,6 +99,9 @@ class KnowledgeStorage(BaseKnowledgeStorage):
)
def save(self, documents: list[str]) -> None:
if not documents:
return
try:
client = self._get_client()
collection_name = (
@@ -177,6 +180,9 @@ class KnowledgeStorage(BaseKnowledgeStorage):
Args:
documents: List of document strings to save.
"""
if not documents:
return
try:
client = self._get_client()
collection_name = (