Skip to content

Commit

Permalink
Merge pull request #15 from hatchet-dev/fix--options-none
Browse files Browse the repository at this point in the history
fix: options can be none
  • Loading branch information
grutt authored May 15, 2024
2 parents bb656c4 + cd366e8 commit dc8b02f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions hatchet_sdk/clients/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,8 @@ def run_workflow(

try:
meta = None if options is None else options.get("additional_metadata")
options["additional_metadata"] = (
None if meta is None else json.dumps(meta).encode("utf-8")
)
if meta is not None:
options["additional_metadata"] = json.dumps(meta).encode("utf-8")
except json.JSONDecodeError as e:
raise ValueError(f"Error encoding payload: {e}")

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hatchet-sdk"
version = "0.23.1"
version = "0.23.2"
description = ""
authors = ["Alexander Belanger <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit dc8b02f

Please sign in to comment.