We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04a0087 commit 875b420Copy full SHA for 875b420
kafka/sasl/msk.py
@@ -24,7 +24,7 @@
24
class SaslMechanismAwsMskIam(SaslMechanism):
25
def __init__(self, **config):
26
assert BotoSession is not None, 'AWS_MSK_IAM requires the "botocore" package'
27
- assert config['security_protocol'] == 'SASL_SSL', 'AWS_MSK_IAM requires SASL_SSL'
+ assert config.get('security_protocol', '') == 'SASL_SSL', 'AWS_MSK_IAM requires SASL_SSL'
28
self._is_done = False
29
self._is_authenticated = False
30
0 commit comments