diff options
author | Dana Powers <dana.powers@gmail.com> | 2016-02-15 11:05:41 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2016-02-15 11:05:41 -0800 |
commit | 6c213d62b6ffb52decfb58b57eef41963e570244 (patch) | |
tree | 782d6b275ad9d019d9e6ae71362b8b05d1f45fe0 | |
parent | 4d17ec257f7934097e048b190df0075068787b6b (diff) | |
download | kafka-python-6c213d62b6ffb52decfb58b57eef41963e570244.tar.gz |
Fixup RequestTimeoutError -> RequestTimedOutError
-rw-r--r-- | kafka/client_async.py | 2 | ||||
-rw-r--r-- | kafka/producer/base.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kafka/client_async.py b/kafka/client_async.py index 844d3b3..25ef29f 100644 --- a/kafka/client_async.py +++ b/kafka/client_async.py @@ -633,7 +633,7 @@ class KafkaClient(object): # If the socket flush hack did not work (which should force the # connection to close and fail all pending requests), then we # get a basic Request Timeout. Thisisn - if isinstance(f.exception, Errors.RequestTimeoutError): + if isinstance(f.exception, Errors.RequestTimedOutError): pass elif six.PY2: assert isinstance(f.exception.args[0], socket.error) diff --git a/kafka/producer/base.py b/kafka/producer/base.py index 506da83..9720390 100644 --- a/kafka/producer/base.py +++ b/kafka/producer/base.py @@ -250,7 +250,7 @@ class Producer(object): async_retry_backoff_ms (int, optional): milliseconds to backoff on failed messages, defaults to 100. async_retry_on_timeouts (bool, optional): whether to retry on - RequestTimeoutError, defaults to True. + RequestTimedOutError, defaults to True. async_queue_maxsize (int, optional): limit to the size of the internal message queue in number of messages (not size), defaults to 0 (no limit). |