From 8a61d31393b3bc5afe1151a5bdb713c4d236faf3 Mon Sep 17 00:00:00 2001 From: gabriel ruttner Date: Wed, 15 May 2024 07:09:23 -0600 Subject: [PATCH 1/2] fix: options can be none --- hatchet_sdk/clients/admin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hatchet_sdk/clients/admin.py b/hatchet_sdk/clients/admin.py index 7a4679a7..e35216eb 100644 --- a/hatchet_sdk/clients/admin.py +++ b/hatchet_sdk/clients/admin.py @@ -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}") From cd366e847452567d2a0747b824b3e09facc0f437 Mon Sep 17 00:00:00 2001 From: gabriel ruttner Date: Wed, 15 May 2024 07:10:37 -0600 Subject: [PATCH 2/2] release: 0.23.2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 43073c08..00f04614 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hatchet-sdk" -version = "0.23.1" +version = "0.23.2" description = "" authors = ["Alexander Belanger "] readme = "README.md"