diff options
author | Jeff Widman <jeff@jeffwidman.com> | 2018-05-10 16:12:19 -0700 |
---|---|---|
committer | Jeff Widman <jeff@jeffwidman.com> | 2018-05-10 16:14:59 -0700 |
commit | c9fba2041e138b49c85a566c2ff80cf5af91a4e8 (patch) | |
tree | fd03145aa7897175627b351715833a17093d1903 /kafka/producer | |
parent | 27f939ad528a5f7f71346c3d9b18e1a9aa9404e5 (diff) | |
download | kafka-python-Stop-shadowing-native-python-ConnectionError-exception.tar.gz |
Stop shadowing `ConnectionError`Stop-shadowing-native-python-ConnectionError-exception
In Python3, `ConnectionError` is a native exception. So rename our
custom one to `KafkaConnectionError` to prevent accidentally
shadowing the native one.
Note that there are still valid uses of `ConnectionError` in this code.
They already expect a native Python3 `ConnectionError`, and also already
handle the Python2 compatibility issues.
Diffstat (limited to 'kafka/producer')
-rw-r--r-- | kafka/producer/base.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kafka/producer/base.py b/kafka/producer/base.py index e8d6c3d..c9dd6c3 100644 --- a/kafka/producer/base.py +++ b/kafka/producer/base.py @@ -372,7 +372,6 @@ class Producer(object): Raises: FailedPayloadsError: low-level connection error, can be caused by networking failures, or a malformed request. - ConnectionError: KafkaUnavailableError: all known brokers are down when attempting to refresh metadata. LeaderNotAvailableError: topic or partition is initializing or |