Skip to content

Commit fb2ada9

Browse files
committed
fix: clarify error message when insufficient configuration is provided to KmsKeyring
1 parent 6b73e13 commit fb2ada9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aws_encryption_sdk/keyrings/aws_kms/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def __attrs_post_init__(self):
106106
raise TypeError("is_discovery cannot be True if key IDs are provided")
107107

108108
if neither:
109-
raise TypeError("No key IDs provided")
109+
raise TypeError("is_discovery cannot be False if no key IDs are provided")
110110

111111
if self._is_discovery:
112112
self._inner_keyring = _AwsKmsDiscoveryKeyring(

0 commit comments

Comments
 (0)