Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes duplicated call from langchain/client/langchain.py #5449

Merged

Conversation

patrickkeane
Copy link
Contributor

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)

Here are the make test results:

================= 693 passed, 52 skipped, 27 warnings in 8.38s =================

@dev2049
Copy link
Contributor

dev2049 commented May 30, 2023

good catch, thanks @patrickkeane!

@dev2049 dev2049 added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label May 30, 2023
@dev2049 dev2049 merged commit e09afb4 into langchain-ai:master May 30, 2023
@patrickkeane patrickkeane deleted the bugfix/cut-and-paste-error branch May 30, 2023 19:19
vowelparrot pushed a commit that referenced this pull request May 31, 2023
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)
```
@danielchalef danielchalef mentioned this pull request Jun 5, 2023
Undertone0809 pushed a commit to Undertone0809/langchain that referenced this pull request Jun 19, 2023
…-ai#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 was referenced Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PR looks good. Use to confirm that a PR is ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants