Skip to content

Commit 9ff982e

Browse files
authored
fix(decorator): trace falsy output values (#1010)
1 parent dd25492 commit 9ff982e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langfuse/decorators/langfuse_decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def _handle_call_result(
452452
# Objects are later serialized again so deserialization is necessary here to avoid unnecessary escaping of quotes.
453453
json.loads(
454454
json.dumps(
455-
result if result and capture_output else None,
455+
result if result is not None and capture_output else None,
456456
cls=EventSerializer,
457457
)
458458
)

0 commit comments

Comments
 (0)