From 4099d5e0e3a15c377a10754ed6a376f3a6c20676 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 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: