From 6f17606b5cc9486fecfecdb9e92e288ee08c2b0c Mon Sep 17 00:00:00 2001 From: wKollendorf <83725977+wKollendorf@users.noreply.github.com> Date: Thu, 15 Feb 2024 23:31:09 +0100 Subject: [PATCH] Update connection.py 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 c9f7fc55d0..617d04af5c 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: