Skip to content

Commit

Permalink
šŸ› fix(process.py): handle unknown langchain_object types by returningā€¦
Browse files Browse the repository at this point in the history
ā€¦ the object as is instead of raising an exception
  • Loading branch information
ogabrielluiz committed Sep 18, 2023
1 parent 15a96b6 commit eeab7bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/langflow/processing/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def process_graph_cached(
result = langchain_object.dict()
else:
logger.warning(f"Unknown langchain_object type: {type(langchain_object)}")
result = langchain_object

return result

Expand Down

0 comments on commit eeab7bd

Please sign in to comment.