summaryrefslogtreecommitdiff
path: root/kafka/consumer/fetcher.py
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2017-12-07 15:07:31 -0800
committerJeff Widman <jeff@jeffwidman.com>2017-12-07 18:45:42 -0800
commit43511aa7fac950e07376872443db133cbb21530c (patch)
tree50bf55ebe41bb457906cabc575c6c2d12da630e3 /kafka/consumer/fetcher.py
parent009290ddd5d4616d70bff93f841e773af8b22750 (diff)
downloadkafka-python-minor-exception-cleanup.tar.gz
Minor Exception cleanupminor-exception-cleanup
Diffstat (limited to 'kafka/consumer/fetcher.py')
-rw-r--r--kafka/consumer/fetcher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kafka/consumer/fetcher.py b/kafka/consumer/fetcher.py
index e4d76cf..f9251fd 100644
--- a/kafka/consumer/fetcher.py
+++ b/kafka/consumer/fetcher.py
@@ -478,8 +478,8 @@ class Fetcher(six.Iterator):
# caught by the generator. We want all exceptions to be raised
# back to the user. See Issue 545
except StopIteration as e:
- log.exception('StopIteration raised unpacking messageset: %s', e)
- raise Exception('StopIteration raised unpacking messageset')
+ log.exception('StopIteration raised unpacking messageset')
+ raise RuntimeError('StopIteration raised unpacking messageset')
def __iter__(self): # pylint: disable=non-iterator-returned
return self