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):