From c9db4914851d1ffe24a7317728daeac5711e6a82 Mon Sep 17 00:00:00 2001 From: Brandon Davis Date: Sun, 21 Aug 2016 11:50:06 -0700 Subject: [PATCH] Minor cleanup --- snappass/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snappass/main.py b/snappass/main.py index d28baee..9db002d 100644 --- a/snappass/main.py +++ b/snappass/main.py @@ -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)