Skip to content

Commit

Permalink
fix(decorator): trace falsy output values (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
tux-type authored Nov 27, 2024
1 parent dd25492 commit 9ff982e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langfuse/decorators/langfuse_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def _handle_call_result(
# Objects are later serialized again so deserialization is necessary here to avoid unnecessary escaping of quotes.
json.loads(
json.dumps(
result if result and capture_output else None,
result if result is not None and capture_output else None,
cls=EventSerializer,
)
)
Expand Down

0 comments on commit 9ff982e

Please sign in to comment.