From e0ae801b244cf8971daa9cd8c124fdae866f4ba1 Mon Sep 17 00:00:00 2001 From: Brandon Davis Date: Sun, 21 Aug 2016 21:33:12 -0700 Subject: [PATCH] Remove TimeoutError import --- snappass/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snappass/main.py b/snappass/main.py index a7bee3e..463d8f5 100644 --- a/snappass/main.py +++ b/snappass/main.py @@ -3,7 +3,7 @@ import sys import uuid import redis -from redis.exceptions import ConnectionError, TimeoutError +from redis.exceptions import ConnectionError from flask import abort, Flask, render_template, request @@ -28,7 +28,7 @@ def check_redis_alive(fn): def inner(*args, **kwargs): try: redis_client.ping() - except (ConnectionError, TimeoutError) as e: + except ConnectionError as e: print(e) if fn.__name__ == "main": sys.exit(0)