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

Add Ability to exclude specific errors #14

Open
barrycoleman opened this issue Aug 8, 2022 · 0 comments
Open

Add Ability to exclude specific errors #14

barrycoleman opened this issue Aug 8, 2022 · 0 comments

Comments

@barrycoleman
Copy link

Would be great to be able to exclude specific errors.

For instance,

aws_lambda = boto3.client('lambda');
policy = aws_lambda.get_policy(FunctionName='TestFunction')

This will throw a ResourceNotFoundException, which is actually ok.
However, AWSRetry will catch this and retry the call due the match on "^.*NotFound".

A possible fix is the change the regex for not found to "^.*NotFound$", so the error has to end in NotFound, but I suspect that adding an optional exclude list might be better.

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

No branches or pull requests

1 participant