dever 7 лет назад
Родитель
Сommit
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):