summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-07-30 10:30:19 +0200
committerSanto Cariotti <sancn@live.com>2017-07-30 10:30:19 +0200
commit51dc404f1da6c4b8991fef5841d4aaa6d240cf67 (patch)
treec8754da3db8bbfece22a5d2a81c63872caba1bba
parent3c56e99ea4166d7be39edc59ee77dd488fe933a4 (diff)
specified error (ImportError)
-rw-r--r--lib/classes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/classes.py b/lib/classes.py
index c4e60e7..5428c1a 100644
--- a/lib/classes.py
+++ b/lib/classes.py
@@ -2,7 +2,7 @@ import redis, socket, os
try:
from .config import config as co
-except:
+except ImportError:
from config import config as co
r = redis.Redis(host=co['host'], port=co['port'], unix_socket_path=co['unix_socket_path'], db=co['db'])