Skip to content

Commit a699f6a

Browse files
authored
Use non-deprecated exception handling
Pulls in the fix upstream from mhils/backports.socketpair#1
1 parent 68a416a commit a699f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/vendor/socketpair.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def socketpair(family=socket.AF_INET, type=socket.SOCK_STREAM, proto=0):
4848
raise
4949
csock.setblocking(True)
5050
ssock, _ = lsock.accept()
51-
except:
51+
except Exception:
5252
csock.close()
5353
raise
5454
finally:

0 commit comments

Comments
 (0)