diff options
author | Jeff Widman <jeff@jeffwidman.com> | 2017-12-12 10:50:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 10:50:58 -0800 |
commit | a699f6a347591076b5c427fc245e5ed5f5ffdd49 (patch) | |
tree | 051fba5d5b5435921cf02090c02b0884705b99b7 | |
parent | 68a416ad151839ff7a070ba809d0ca3d734ace26 (diff) | |
download | kafka-python-a699f6a347591076b5c427fc245e5ed5f5ffdd49.tar.gz |
Use non-deprecated exception handling
Pulls in the fix upstream from https://github.com/mhils/backports.socketpair/pull/1
-rw-r--r-- | kafka/vendor/socketpair.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/vendor/socketpair.py b/kafka/vendor/socketpair.py index 0f196c6..b55e629 100644 --- a/kafka/vendor/socketpair.py +++ b/kafka/vendor/socketpair.py @@ -48,7 +48,7 @@ if not hasattr(socket, "socketpair"): raise csock.setblocking(True) ssock, _ = lsock.accept() - except: + except Exception: csock.close() raise finally: |