Remove unused traceback and code formatting cleanup

This commit is contained in:
Brandon Davis 2016-08-21 11:24:20 -07:00
parent 4feeaef2fd
commit 2d6aec17cd

View file

@ -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)