dever 7 年之前
父节点
当前提交
f03da84fb6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      demeter/core.py

+ 1 - 1
demeter/core.py

@@ -374,7 +374,7 @@ class Demeter(object):
 	def redis(self):
 		import redis
 		config = self.config['redis']
-		pool = redis.ConnectionPool(host=config['host'], port=config['host']['port'])
+		pool = redis.ConnectionPool(host=config['host'], port=int(config['host']['port']))
 		return redis.Redis(connection_pool=pool)
 
 class File(object):