From f9ab2674e63f493ad9f5e27b5c28b4bd57f3c4bb Mon Sep 17 00:00:00 2001 From: SN <6432132+samnoyes@users.noreply.github.com> Date: Thu, 18 Jan 2024 12:44:31 -0800 Subject: [PATCH] lint --- python/langsmith/env/_runtime_env.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/langsmith/env/_runtime_env.py b/python/langsmith/env/_runtime_env.py index 38998a129..e206bb22b 100644 --- a/python/langsmith/env/_runtime_env.py +++ b/python/langsmith/env/_runtime_env.py @@ -172,8 +172,8 @@ def get_langchain_env_var_metadata() -> dict: env_revision_id = langchain_metadata.pop("LANGCHAIN_REVISION_ID", None) if env_revision_id: langchain_metadata["revision_id"] = env_revision_id - else: - langchain_metadata["revision_id"] = _get_default_revision_id() + elif default_revision_id := _get_default_revision_id(): + langchain_metadata["revision_id"] = default_revision_id return langchain_metadata