Remove unused traceback and code formatting cleanup
This commit is contained in:
parent
4feeaef2fd
commit
2d6aec17cd
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
import os
|
||||
import sys
|
||||
import uuid
|
||||
import traceback
|
||||
|
||||
import redis
|
||||
from redis.exceptions import ConnectionError
|
||||
|
@ -29,8 +28,8 @@ def check_redis_alive(force_exit = False):
|
|||
redis_client.ping()
|
||||
except (ConnectionError, TimeoutError) as e:
|
||||
if force_exit:
|
||||
print("{}".format(e))
|
||||
sys.exit(0)
|
||||
print("{}".format(e))
|
||||
sys.exit(0)
|
||||
else:
|
||||
abort(500)
|
||||
|
||||
|
|
Loading…
Reference in a new issue