Skip to content

Commit

Permalink
Removes duplicated call from langchain/client/langchain.py (#5449)
Browse files Browse the repository at this point in the history
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)
```
  • Loading branch information
patrickkeane committed May 30, 2023
1 parent 0d3a9d4 commit e09afb4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions langchain/client/langchain.py
Expand Up @@ -249,11 +249,6 @@ def read_session(
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:
Expand Down

0 comments on commit e09afb4

Please sign in to comment.