cognee.add() - add more explicit check for empty preferred_loaders param
This commit is contained in:
parent
55cb63d60e
commit
90118562d8
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ async def add(
|
|||
- TAVILY_API_KEY: YOUR_TAVILY_API_KEY
|
||||
|
||||
"""
|
||||
if preferred_loaders:
|
||||
if preferred_loaders is not None:
|
||||
transformed = {}
|
||||
for item in preferred_loaders:
|
||||
if isinstance(item, dict):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue