Underlying (and useful) exception details are hidden (original) (raw)
This has bitten me numerous times!
All of the following instances catch ClientError
from botocore and re-raise a new generic (and remarkably useless by comparison) exception:
key_providers.kms._generate_data_key:L213
key_providers.kms._encrypt_data_key:L250
key_providers.kms._decrypt_data_key:L283
I believe a different approach should be taken here to prevent hiding botocore Client exception details (network connectivity, insufficient permissions, etc).