Skip to content

Commit e0c1ef0

Browse files
wKollendorfvladvildanov
authored andcommitted
Update connection.py (#3149)
Exception ignored in: <function Redis.__del__ at ...> Traceback .... TypeError: 'NoneType' object cannot be interpreted as an integer. This happens when closing the connection within a spawned Process (multiprocess).
1 parent f276b88 commit e0c1ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def disconnect(self, *args):
451451
if os.getpid() == self.pid:
452452
try:
453453
conn_sock.shutdown(socket.SHUT_RDWR)
454-
except OSError:
454+
except (OSError, TypeError):
455455
pass
456456

457457
try:

0 commit comments

Comments
 (0)