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}") 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"