Skip to content

Commit 03d60f0

Browse files
author
Ben Frederickson
committed
error handling fix
1 parent 86b0e41 commit 03d60f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class KafkaException(Exception):
2424
def __init__(self, errorType):
2525
self.errorType = errorType
2626
def __str__(self):
27-
return str(errorType)
27+
return str(self.errorType)
2828

2929
Message = namedtuple("Message", ["magic", "attributes", "crc", "payload"])
3030
FetchRequest = namedtuple("FetchRequest", ["topic", "partition", "offset", "size"])

0 commit comments

Comments
 (0)