forked from Archives/langchain
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) ```
This commit is contained in:
parent
0d3a9d481f
commit
e09afb4b44
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user