Skip to content

Commit b9167ca

Browse files
author
Vadim Graboys
committed
remove zero length field name in format string, to work in Python 2.6
1 parent 87c7f9d commit b9167ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/conn.py

Lines changed: 1 addition & 1 deletion
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)