diff options
author | Mark Roberts <wizzat@gmail.com> | 2014-04-17 16:11:57 -0700 |
---|---|---|
committer | Mark Roberts <wizzat@gmail.com> | 2014-04-17 16:11:57 -0700 |
commit | 8983e73437e485d1da30cc12dbf2e78bfada356c (patch) | |
tree | 9c991894ca41e02f6d18278977f07ca404a5c963 /kafka/consumer.py | |
parent | 7eaca8eea7adf6e1b8a487a78e9cde950d7221f7 (diff) | |
download | kafka-python-8983e73437e485d1da30cc12dbf2e78bfada356c.tar.gz |
Split up and speed up producer based integration tests
Diffstat (limited to 'kafka/consumer.py')
-rw-r--r-- | kafka/consumer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/consumer.py b/kafka/consumer.py index 8ac28da..14b84fe 100644 --- a/kafka/consumer.py +++ b/kafka/consumer.py @@ -101,7 +101,7 @@ class Consumer(object): elif resp.error == ErrorMapping.UNKNOWN_TOPIC_OR_PARTITON: return 0 else: - raise Exception("OffsetFetchRequest for topic=%s, " + raise ProtocolError("OffsetFetchRequest for topic=%s, " "partition=%d failed with errorcode=%s" % ( resp.topic, resp.partition, resp.error)) |