Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Don't raise RetryError but rather the underlying error #107

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

igiloh-pinecone
Copy link
Contributor

Problem

Resolves #104

Solution

Using tenacity's reraise flag, which means that instead of raising RetryError, the actual underlying error is raised.
This way in the CLI the user is presented with a more meaningful error.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

This way in the CLI the user is presented with a more meaningfull error.
Copy link
Contributor

@acatav acatav left a comment

Choose a reason for hiding this comment

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

LGTM. Consider do that also for our tests

@igiloh-pinecone
Copy link
Contributor Author

LGTM. Consider do that also for our tests

In the tests we get the full stack trace, so we can always see the underling error.
In the CLI we only print the outer-most error

@igiloh-pinecone igiloh-pinecone merged commit d586a48 into dev Oct 26, 2023
10 checks passed
@igiloh-pinecone igiloh-pinecone deleted the bugfix/try_error branch October 26, 2023 07:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants