fix error-causing raise (which obscures real error)

This commit is contained in:
John Krauss
2017-01-12 04:03:33 +00:00
committed by Mario de Frutos
parent 56de523498
commit 8204bb3451

View File

@@ -41,7 +41,7 @@ class RedisDBConfig:
key)
conf = self._db_conn.execute(conf_query)[0]['conf']
if conf is None:
raise "There is no redis configuration defined"
raise Exception("There is no redis configuration defined")
else:
params = json.loads(conf)
self._host = params['redis_host']