Skip to content

Commit

Permalink
Add connection error exception for cache backend (#195)
Browse files Browse the repository at this point in the history
* Add connection error exception for cache backend

* remove exception catchall
  • Loading branch information
Daiern authored and codingjoe committed Jun 13, 2018
1 parent ab17802 commit 6064578
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions health_check/cache/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 6064578

Please sign in to comment.