error handling fix

This commit is contained in:
Ben Frederickson
2012-10-25 10:32:13 -07:00
parent 86b0e41074
commit 03d60f08da

View File

@@ -24,7 +24,7 @@ class KafkaException(Exception):
def __init__(self, errorType):
self.errorType = errorType
def __str__(self):
return str(errorType)
return str(self.errorType)
Message = namedtuple("Message", ["magic", "attributes", "crc", "payload"])
FetchRequest = namedtuple("FetchRequest", ["topic", "partition", "offset", "size"])