Skip to content

Commit

Permalink
update decode
Browse files Browse the repository at this point in the history
  • Loading branch information
Germey committed Dec 31, 2021
1 parent 20d16f9 commit 34d5a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxypool/storages/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, host=REDIS_HOST, port=REDIS_PORT, password=REDIS_PASSWORD, db
"""
# if set connection_string, just use it
if connection_string:
self.db = redis.StrictRedis.from_url(connection_string)
self.db = redis.StrictRedis.from_url(connection_string, decode_responses=True, **kwargs)
else:
self.db = redis.StrictRedis(
host=host, port=port, password=password, db=db, decode_responses=True, **kwargs)
Expand Down

0 comments on commit 34d5a43

Please sign in to comment.