aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-08-14 20:35:08 +0100
committerGravatar Chris Lovering <[email protected]>2022-08-14 20:35:08 +0100
commit6193ee2152d7dba63bd9d40b9b2a4f56524acbce (patch)
tree27dbe356fd31ce45c5bee6eea958e42eca836620
parentMerge pull request #2229 from python-discord/py3.10-rediscache (diff)
Globally decode binary responses from redis to strings
-rw-r--r--bot/__main__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/__main__.py b/bot/__main__.py
index e0d2e6ad5..02af2e9ef 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -26,6 +26,7 @@ async def _create_redis_session() -> RedisSession:
max_connections=20,
use_fakeredis=constants.Redis.use_fakeredis,
global_namespace="bot",
+ decode_responses=True,
)
try:
return await redis_session.connect()