From 4ca1fffcb23dfa96ba4f978d4e51b8ac88529bc8 Mon Sep 17 00:00:00 2001 From: angrybayblade Date: Wed, 23 Oct 2024 12:21:58 +0530 Subject: [PATCH] fix: execute action --- python/composio/client/collections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/composio/client/collections.py b/python/composio/client/collections.py index fc619802a90..9f413075f9e 100644 --- a/python/composio/client/collections.py +++ b/python/composio/client/collections.py @@ -1139,9 +1139,9 @@ def execute( ).json() @staticmethod - def _serialize_auth(auth: t.Optional[CustomAuthObject]) -> t.Dict: + def _serialize_auth(auth: t.Optional[CustomAuthObject]) -> t.Optional[t.Dict]: if auth is None: - return {} + return None data = auth.model_dump(exclude_none=True) data["parameters"] = [