From 7039534141b441bb6a48d443a863ad6fe8d9861a Mon Sep 17 00:00:00 2001 From: Isaac Francisco <78627776+isahers1@users.noreply.github.com> Date: Tue, 17 Dec 2024 13:14:49 -0800 Subject: [PATCH] only pop graph if 'serialized' is not none (#1336) --- python/langsmith/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/langsmith/client.py b/python/langsmith/client.py index f683a36f1..40fa2c60f 100644 --- a/python/langsmith/client.py +++ b/python/langsmith/client.py @@ -1179,7 +1179,7 @@ def _run_transform( ): # Drop completely run_create.pop("serialized", None) - else: + elif run_create.get("serialized"): # Drop graph run_create["serialized"].pop("graph", None)