fix bug: AttributeError: 'module' object has no attribute 'StrictRedis'

Brightcells 8 年之前
父節點
當前提交
ae502c940d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pai2/func_settings.py

+ 1 - 1
pai2/func_settings.py

@@ -13,4 +13,4 @@ def redis_conf(conf):
13 13
 
14 14
 
15 15
 def redis_connect(conf):
16
-    return redis.StrictRedis(connection_pool=redis.ConnectionPool(**redis_conf(conf)))
16
+    return redis.StrictRedisExtensions(connection_pool=redis.ConnectionPool(**redis_conf(conf)))