From e09afb4b4445c99bebabca4b2beb150ba3a37c5c Mon Sep 17 00:00:00 2001 From: Patrick Keane Date: Tue, 30 May 2023 14:52:46 -0400 Subject: [PATCH] Removes duplicated call from langchain/client/langchain.py (#5449) This removes duplicate code presumably introduced by a cut-and-paste error, spotted while reviewing the code in ```langchain/client/langchain.py```. The original code had back to back occurrences of the following code block: ``` response = self._get( path, params=params, ) raise_for_status_with_text(response) ``` --- langchain/client/langchain.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/langchain/client/langchain.py b/langchain/client/langchain.py index bd51608e47..64bc0c3545 100644 --- a/langchain/client/langchain.py +++ b/langchain/client/langchain.py @@ -249,11 +249,6 @@ class LangChainPlusClient(BaseSettings): params=params, ) raise_for_status_with_text(response) - response = self._get( - path, - params=params, - ) - raise_for_status_with_text(response) result = response.json() if isinstance(result, list): if len(result) == 0: