Skip to content

Commit 57ea7e8

Browse files
sharegodpkp
authored andcommitted
typo (dpkp#883)
type error
1 parent 43e0c38 commit 57ea7e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/conn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def __init__(self, host, port, afi, **configs):
175175

176176
if self.config['security_protocol'] in ('SASL_PLAINTEXT', 'SASL_SSL'):
177177
assert self.config['sasl_mechanism'] in self.SASL_MECHANISMS, (
178-
'sasl_mechanism must be in ' + self.SASL_MECHANISMS)
178+
'sasl_mechanism must be in ' + ', '.join(self.SASL_MECHANISMS))
179179
if self.config['sasl_mechanism'] == 'PLAIN':
180180
assert self.config['sasl_plain_username'] is not None, 'sasl_plain_username required for PLAIN sasl'
181181
assert self.config['sasl_plain_password'] is not None, 'sasl_plain_password required for PLAIN sasl'

0 commit comments

Comments
 (0)