From 2d6aec17cd653ab0dc23f4b0ea2cbd0539807250 Mon Sep 17 00:00:00 2001 From: Brandon Davis Date: Sun, 21 Aug 2016 11:24:20 -0700 Subject: [PATCH] Remove unused traceback and code formatting cleanup --- snappass/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/snappass/main.py b/snappass/main.py index f074a24..d28baee 100644 --- a/snappass/main.py +++ b/snappass/main.py @@ -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)