From 6064578d44cd92504622c37da420bbfad7fdcbc8 Mon Sep 17 00:00:00 2001 From: Mat Conyers Date: Wed, 13 Jun 2018 06:47:21 -0700 Subject: [PATCH] Add connection error exception for cache backend (#195) * Add connection error exception for cache backend * remove exception catchall --- health_check/cache/backends.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/health_check/cache/backends.py b/health_check/cache/backends.py index 0973ae45..1d9dcdbd 100644 --- a/health_check/cache/backends.py +++ b/health_check/cache/backends.py @@ -16,3 +16,5 @@ def check_status(self): self.add_error(ServiceReturnedUnexpectedResult("Cache key warning"), e) except ValueError as e: self.add_error(ServiceReturnedUnexpectedResult("ValueError"), e) + except ConnectionError as e: + self.add_error(ServiceReturnedUnexpectedResult("Connection Error"), e)