🔧 chore(process.py): change ValueError exception to a warning log message when encountering an unknown langchain_object type (#923)
This commit is contained in:
commit
b87502b45a
1 changed files with 2 additions and 3 deletions
|
|
@ -130,9 +130,8 @@ def process_graph_cached(
|
|||
elif isinstance(langchain_object, Document):
|
||||
result = langchain_object.dict()
|
||||
else:
|
||||
raise ValueError(
|
||||
f"Unknown langchain_object type: {type(langchain_object).__name__}"
|
||||
)
|
||||
logger.warning(f"Unknown langchain_object type: {type(langchain_object)}")
|
||||
|
||||
return result
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue