@naegelyd surrounding this line with a try catch to catch a ConnectionError seems to be the way to check for the redis server