From 2b0558a386f05a6ee2f556e52b6ec81302bb6b36 Mon Sep 17 00:00:00 2001 From: wKollendorf <83725977+wKollendorf@users.noreply.github.com> Date: Mon, 19 Feb 2024 10:48:42 +0100 Subject: [PATCH] Update connection.py (#3149) Exception ignored in: Traceback .... TypeError: 'NoneType' object cannot be interpreted as an integer. This happens when closing the connection within a spawned Process (multiprocess). --- redis/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/connection.py b/redis/connection.py index 837a5e3841..130fbac60f 100644 --- a/redis/connection.py +++ b/redis/connection.py @@ -451,7 +451,7 @@ def disconnect(self, *args): if os.getpid() == self.pid: try: conn_sock.shutdown(socket.SHUT_RDWR) - except OSError: + except (OSError, TypeError): pass try: