We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 926c404 commit f8fae53Copy full SHA for f8fae53
redis_cache/rediscache.py
@@ -37,13 +37,6 @@ def connect(self):
37
RedisNoConnException is raised if we fail to ping.
38
:return: redis.StrictRedis Connection Object
39
"""
40
- try:
41
- redis.StrictRedis(host=self.host, port=self.port, password=self.password).ping()
42
- except redis.ConnectionError as e:
43
- raise RedisNoConnException("Failed to create connection to redis",
44
- (self.host,
45
- self.port)
46
- )
47
return redis.StrictRedis(host=self.host,
48
port=self.port,
49
db=self.db,
0 commit comments