From 8eb26b6420a358dc10af7e58d270fae690e07fdf Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Tue, 13 Nov 2018 11:57:45 -0800 Subject: Be explicit with tuples for %s formatting Fix #1633 --- kafka/consumer/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kafka/consumer/group.py') diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 279cce0..8727de7 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -309,7 +309,7 @@ class KafkaConsumer(six.Iterator): # Only check for extra config keys in top-level class extra_configs = set(configs).difference(self.DEFAULT_CONFIG) if extra_configs: - raise KafkaConfigurationError("Unrecognized configs: %s" % extra_configs) + raise KafkaConfigurationError("Unrecognized configs: %s" % (extra_configs,)) self.config = copy.copy(self.DEFAULT_CONFIG) self.config.update(configs) -- cgit v1.2.1