Skip to content

Commit

Permalink
Merge pull request #883 from parea-ai/PAI-1150-py-sdk-return-0-gets-t…
Browse files Browse the repository at this point in the history
…urned-into-none

fix(trace): function returning 0 got converted to None in trace log
  • Loading branch information
jalexanderII committed May 18, 2024
2 parents acbf9e4 + 4f332be commit 05a6197
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions parea/utils/trace_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def check_multiple_return_values(func) -> bool:


def make_output(result, islist) -> Optional[str]:
if not result:
return None
if result is None:
return result
try:
if islist:
json_list = [json_dumps(r) for r in result]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "parea-ai"
packages = [{ include = "parea" }]
version = "0.2.154"
version = "0.2.155"
description = "Parea python sdk"
readme = "README.md"
authors = ["joel-parea-ai <[email protected]>"]
Expand Down

0 comments on commit 05a6197

Please sign in to comment.