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/simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kafka/consumer/simple.py') diff --git a/kafka/consumer/simple.py b/kafka/consumer/simple.py index b60a586..a6a64a5 100644 --- a/kafka/consumer/simple.py +++ b/kafka/consumer/simple.py @@ -247,7 +247,7 @@ class SimpleConsumer(Consumer): self.offsets[resp.partition] = \ resp.offsets[0] + deltas[resp.partition] else: - raise ValueError('Unexpected value for `whence`, %d' % whence) + raise ValueError('Unexpected value for `whence`, %d' % (whence,)) # Reset queue and fetch offsets since they are invalid self.fetch_offsets = self.offsets.copy() -- cgit v1.2.1