Minor cleanup

This commit is contained in:
Brandon Davis 2016-08-21 11:50:06 -07:00
parent 2d6aec17cd
commit c9db491485

View file

@ -23,12 +23,12 @@ time_conversion = {
'hour': 3600 'hour': 3600
} }
def check_redis_alive(force_exit = False): def check_redis_alive(force_exit=False):
try: try:
redis_client.ping() redis_client.ping()
except (ConnectionError, TimeoutError) as e: except (ConnectionError, TimeoutError) as e:
if force_exit: if force_exit:
print("{}".format(e)) print(e)
sys.exit(0) sys.exit(0)
else: else:
abort(500) abort(500)