1
0
Germey 3 жил өмнө
parent
commit
34d5a4389a

+ 1 - 1
proxypool/storages/redis.py

@@ -29,7 +29,7 @@ class RedisClient(object):
         """
         """
         # if set connection_string, just use it
         # if set connection_string, just use it
         if connection_string:
         if connection_string:
-            self.db = redis.StrictRedis.from_url(connection_string)
+            self.db = redis.StrictRedis.from_url(connection_string, decode_responses=True, **kwargs)
         else:
         else:
             self.db = redis.StrictRedis(
             self.db = redis.StrictRedis(
                 host=host, port=port, password=password, db=db, decode_responses=True, **kwargs)
                 host=host, port=port, password=password, db=db, decode_responses=True, **kwargs)