Minor cleanup
This commit is contained in:
parent
2d6aec17cd
commit
c9db491485
1 changed files with 2 additions and 2 deletions
|
@ -23,12 +23,12 @@ time_conversion = {
|
|||
'hour': 3600
|
||||
}
|
||||
|
||||
def check_redis_alive(force_exit = False):
|
||||
def check_redis_alive(force_exit=False):
|
||||
try:
|
||||
redis_client.ping()
|
||||
except (ConnectionError, TimeoutError) as e:
|
||||
if force_exit:
|
||||
print("{}".format(e))
|
||||
print(e)
|
||||
sys.exit(0)
|
||||
else:
|
||||
abort(500)
|
||||
|
|
Loading…
Reference in a new issue