Skip to content

Commit 4e1cfc8

Browse files
committed
Merge pull request #99 from vadimg/master
remove zero length field name in format string, to work in Python 2.6
2 parents 87c7f9d + b9167ca commit 4e1cfc8

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
@@ -37,7 +37,7 @@ def __str__(self):
3737

3838
def _raise_connection_error(self):
3939
self._dirty = True
40-
raise ConnectionError("Kafka @ {}:{} went away".format(self.host, self.port))
40+
raise ConnectionError("Kafka @ {0}:{1} went away".format(self.host, self.port))
4141

4242
def _read_bytes(self, num_bytes):
4343
bytes_left = num_bytes

0 commit comments

Comments
 (0)