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: change base class of autoretry_for to BaseException #108

Merged
merged 1 commit into from
Mar 19, 2023

Conversation

sk-
Copy link
Contributor

@sk- sk- commented Mar 19, 2023

There are some exceptions like CancelledError that extend from BaseException instead of Exception, and that makes it impossible to correctly pass them as arguments to autoretry_for.

This fixes #107.

I'm not sure if we should to a similar change to the throws argument.

There are some exceptions like `CancelledError` that extend from `BaseException` instead of `Exception`, and that makes it impossible to correctly pass them as arguments to `autoretry_for`.

This fixes sbdchd#107.

I'm not sure if we should to a similar change to the `throws` argument.
Copy link
Owner

@sbdchd sbdchd left a comment

Choose a reason for hiding this comment

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

Thank you!!

@sbdchd sbdchd added the automerge auto merge PRs using kodiak label Mar 19, 2023
@kodiakhq kodiakhq bot merged commit 1ee0c59 into sbdchd:main Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge auto merge PRs using kodiak
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect typing for autoretry_for
2 participants