From 57ea7e81dc00065825c1586af7fe3cc9609d1f6b Mon Sep 17 00:00:00 2001 From: sharego Date: Wed, 16 Nov 2016 01:30:16 +0800 Subject: typo (#883) type error --- kafka/conn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kafka/conn.py') diff --git a/kafka/conn.py b/kafka/conn.py index 5775af8..b451895 100644 --- a/kafka/conn.py +++ b/kafka/conn.py @@ -175,7 +175,7 @@ class BrokerConnection(object): if self.config['security_protocol'] in ('SASL_PLAINTEXT', 'SASL_SSL'): assert self.config['sasl_mechanism'] in self.SASL_MECHANISMS, ( - 'sasl_mechanism must be in ' + self.SASL_MECHANISMS) + 'sasl_mechanism must be in ' + ', '.join(self.SASL_MECHANISMS)) if self.config['sasl_mechanism'] == 'PLAIN': assert self.config['sasl_plain_username'] is not None, 'sasl_plain_username required for PLAIN sasl' assert self.config['sasl_plain_password'] is not None, 'sasl_plain_password required for PLAIN sasl' -- cgit v1.2.1