Grokzen / redis-py-cluster

Python cluster client for the official redis cluster. Redis 3.0+.
https://redis-py-cluster.readthedocs.io/
MIT License
1.1k stars 316 forks source link

AttributeError: 'RedisCluster' object has no attribute 'connection' #433

Closed levkk closed 3 years ago

levkk commented 3 years ago

Happens on interpreter exit:

Exception ignored in: <function Redis.__del__ at 0x10a87b280>
Traceback (most recent call last):
  File "/[...]/venv/lib/python3.8/site-packages/redis/client.py", line 885, in __del__
    self.close()
  File "/[...]/venv/lib/python3.8/site-packages/redis/client.py", line 888, in close
    conn = self.connection
AttributeError: 'RedisCluster' object has no attribute 'connection'
$ pip freeze | grep redis
redis==3.5.3
redis-py-cluster==2.1.0

Interpreter: Mac OS X Python 3.8

Grokzen commented 3 years ago

@levkk Thank you for this contribution