diff --git a/health_check/cache/backends.py b/health_check/cache/backends.py index 02ddfc68..d810f805 100644 --- a/health_check/cache/backends.py +++ b/health_check/cache/backends.py @@ -1,10 +1,9 @@ -from django.core.cache import CacheKeyWarning, caches from django.conf import settings +from django.core.cache import CacheKeyWarning, caches from health_check.backends import BaseHealthCheckBackend from health_check.exceptions import ServiceReturnedUnexpectedResult, ServiceUnavailable - try: # Exceptions thrown by Redis do not subclass builtin exceptions like ConnectionError. # Additionally, not only connection errors (ConnectionError -> RedisError) can be raised,