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:
Patrick Keane 2023-05-30 14:52:46 -04:00 committed by GitHub
parent 0d3a9d481f
commit e09afb4b44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: