Skip to content

Commit c1e63a0

Browse files
committed
Add redis.exceptions.ResponseError exception
1 parent a4efd3d commit c1e63a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def ping_redis() -> str:
2626
"""Call ping on Redis."""
2727
try:
2828
return REDIS.ping()
29-
except redis.exceptions.ConnectionError:
29+
except (redis.exceptions.ConnectionError, redis.exceptions.ResponseError):
3030
LOGGER.warning('Redis Ping unsuccessful')
3131
return False
3232

0 commit comments

Comments
 (0)