summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
authorAlon Diamant <diamant.alon@gmail.com>2022-03-14 13:52:51 +0200
committerGitHub <noreply@github.com>2022-03-14 13:52:51 +0200
commita081173b650dd73fca06d419156ab525bc1c2200 (patch)
tree9d0b716a2746662bcbfc7240824322eb3db4079d /redis/connection.py
parent934c6891c221157985743db76a2c9edb93ef45d6 (diff)
downloadredis-py-a081173b650dd73fca06d419156ab525bc1c2200.tar.gz
Fix: avoiding issue with PytestUnraisableExceptionWarning (#1458)
* Fix: avoiding issue with PytestUnraisableExceptionWarning that is raised because of __del__() calling self.close() in Redis class, as the self.connection attribute was not set due to early failure in the Redis() constructor. Example: calling redis.StrictRedis(**connectionInfo) in a constructor, with connectionInfo={'hog':'cat'} * linters * linters Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
Diffstat (limited to 'redis/connection.py')
0 files changed, 0 insertions, 0 deletions