Skip to content

Commit

Permalink
[chore]: If empty for transformation then return empty dict
Browse files Browse the repository at this point in the history
  • Loading branch information
keenborder786 committed Nov 6, 2024
1 parent c3c638c commit d3c14eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/community/langchain_community/callbacks/tracers/wandb.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ def transform_run(run: Dict[str, Any]) -> Dict[str, Any]:
transformed_dict = transform_serialized(run)

serialized = transformed_dict.pop("serialized")
if not serialized:
return {}
for k, v in serialized.items():
transformed_dict[k] = v

Expand Down

0 comments on commit d3c14eb

Please sign in to comment.