You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: GetSecretError does not inherit from GetParameterError as the docstrings say #8595
get_secrets_by_name and SecretsProvider.get_multiple raise an exception that except GetParameterError catches, as their docstrings state ("Raises GetParameterError"). get_secret already raises GetParameterError.
Current Behaviour
GetSecretError (exceptions.py:7) subclasses Exception directly, so except GetParameterError around a batch call silently misses it. It is also not exported from aws_lambda_powertools.utilities.parameters.
class GetSecretError(GetParameterError) and export it from the package __init__.
Steps to Reproduce
Run the snippet above (it uses botocore.stub.Stubber, no AWS access needed).
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.13
Packaging format used
PyPi
Debugging logs
Warning
This issue is ready to be picked up, by humans or by agents. If you want it, comment here first so we can assign it to you, and please take only one or two issues at a time so others can join in too. The reproduction above runs locally without AWS access. Thanks!
I'd like to take this one. I'll make GetSecretError subclass GetParameterError and export it from aws_lambda_powertools.utilities.parameters, with a regression test, and open a PR. I use AI tooling to assist; the change is reviewed and tested by me. This is the only issue in this repo I'm claiming right now.
Hi @leandrodamascena, I'd like to take this one. Plan: make GetSecretError subclass GetParameterError, export it from aws_lambda_powertools.utilities.parameters, and add a regression test. I have it ready locally with the parameters test suite passing.
Activity
MrForward commentedon Oct 18, 2026
I'd like to take this one. I'll make
GetSecretErrorsubclassGetParameterErrorand export it fromaws_lambda_powertools.utilities.parameters, with a regression test, and open a PR. I use AI tooling to assist; the change is reviewed and tested by me. This is the only issue in this repo I'm claiming right now.Tanmay-Ts commentedon Oct 18, 2026
Hi @leandrodamascena, I'd like to take this one. Plan: make
GetSecretErrorsubclassGetParameterError, export it fromaws_lambda_powertools.utilities.parameters, and add a regression test. I have it ready locally with the parameters test suite passing.leandrodamascena commentedon Oct 18, 2026
Hey @MrForward pls go ahead.