Skip to content

Commit f8fae53

Browse files
authored
remove connect ping test
1 parent 926c404 commit f8fae53

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

redis_cache/rediscache.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ def connect(self):
3737
RedisNoConnException is raised if we fail to ping.
3838
:return: redis.StrictRedis Connection Object
3939
"""
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-
)
4740
return redis.StrictRedis(host=self.host,
4841
port=self.port,
4942
db=self.db,

0 commit comments

Comments
 (0)