mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 14:49:29 +00:00
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,
|
params=params,
|
||||||
)
|
)
|
||||||
raise_for_status_with_text(response)
|
raise_for_status_with_text(response)
|
||||||
response = self._get(
|
|
||||||
path,
|
|
||||||
params=params,
|
|
||||||
)
|
|
||||||
raise_for_status_with_text(response)
|
|
||||||
result = response.json()
|
result = response.json()
|
||||||
if isinstance(result, list):
|
if isinstance(result, list):
|
||||||
if len(result) == 0:
|
if len(result) == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user