Repository navigation
Commit 6a7e3c9
fix(parameters): make GetSecretError inherit from GetParameterError (#8611)
get_secrets_by_name and SecretsProvider.get_multiple document that they
raise GetParameterError, but GetSecretError subclassed Exception directly,
so `except GetParameterError` silently missed batch failures. Also export
GetSecretError from aws_lambda_powertools.utilities.parameters.
Co-authored-by: Leandro Damascena <lcdama@amazon.pt>1 parent 89f45d7 commit 6a7e3c9
3 files changed
Lines changed: 17 additions & 2 deletions
File tree
- aws_lambda_powertools/utilities/parameters
- tests/functional/parameters/_boto3
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3716 | 3716 | | |
3717 | 3717 | | |
3718 | 3718 | | |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
| 3724 | + | |
| 3725 | + | |
| 3726 | + | |
| 3727 | + | |
| 3728 | + | |
| 3729 | + | |
| 3730 | + | |
| 3731 | + | |
| 3732 | + | |
3719 | 3733 | | |
3720 | 3734 | | |
3721 | 3735 | | |
| |||
0 commit comments