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 os
|
||||||
import sys
|
import sys
|
||||||
import uuid
|
import uuid
|
||||||
import traceback
|
|
||||||
|
|
||||||
import redis
|
import redis
|
||||||
from redis.exceptions import ConnectionError
|
from redis.exceptions import ConnectionError
|
||||||
|
@ -29,8 +28,8 @@ def check_redis_alive(force_exit = False):
|
||||||
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("{}".format(e))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
else:
|
else:
|
||||||
abort(500)
|
abort(500)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue