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

fix: raise botocore exceptions #193

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

pavelm10
Copy link
Contributor

Motivation:
Old implementation is swallowing botocore exceptions and translating it into ValueError exception which complicates handling different errors, some botocore exceptions could be just retried in the user code, whereas for others the user wants to just trigger alert and re-raise or raise some specific exception. Raising ValueError for all botocore exceptions just make it impossible.

Copy link
Collaborator

@3coins 3coins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pavelm10
Thanks for submitting this change. Code looks good, once this is merged, can you also submit a backport for v0.1.

@3coins 3coins merged commit 653a8b3 into langchain-ai:main Sep 19, 2024
12 checks passed
@pavelm10
Copy link
Contributor Author

@pavelm10 Thanks for submitting this change. Code looks good, once this is merged, can you also submit a backport for v0.1.

@3coins How do you do a backport for v0.1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants