fix error-causing raise (which obscures real error)
This commit is contained in:
committed by
Mario de Frutos
parent
56de523498
commit
8204bb3451
@@ -41,7 +41,7 @@ class RedisDBConfig:
|
|||||||
key)
|
key)
|
||||||
conf = self._db_conn.execute(conf_query)[0]['conf']
|
conf = self._db_conn.execute(conf_query)[0]['conf']
|
||||||
if conf is None:
|
if conf is None:
|
||||||
raise "There is no redis configuration defined"
|
raise Exception("There is no redis configuration defined")
|
||||||
else:
|
else:
|
||||||
params = json.loads(conf)
|
params = json.loads(conf)
|
||||||
self._host = params['redis_host']
|
self._host = params['redis_host']
|
||||||
|
|||||||
Reference in New Issue
Block a user