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 bc90bb0 commit 50a9cd7Copy full SHA for 50a9cd7
src/fastapi_redis_cache/redis.py
@@ -20,6 +20,8 @@ def _connect(host_url: str) -> Tuple[RedisStatus, redis.client.Redis]: # pragma
20
return (RedisStatus.CONN_ERROR, None)
21
except redis.AuthenticationError:
22
return (RedisStatus.AUTH_ERROR, None)
23
+ except redis.ConnectionError:
24
+ return (RedisStatus.CONN_ERROR, None)
25
26
27
def _connect_fake() -> Tuple[RedisStatus, redis.client.Redis]:
0 commit comments