From bfaaefcf73a70a61c20b3b53c5395051541d1e2e Mon Sep 17 00:00:00 2001 From: rafie Date: Sun, 28 Nov 2021 14:50:29 +0200 Subject: fixes 3 --- redis/client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/redis/client.py b/redis/client.py index 706299c..71f19a6 100755 --- a/redis/client.py +++ b/redis/client.py @@ -1092,8 +1092,8 @@ class Redis(RedisModuleCommands, CoreCommands, SentinelCommands, object): pool = self.connection_pool command_name = args[0] need_custom = options != {} and options.keys() != ['decode_responses'] - conn = self.connection and not need_custom or - pool.get_connection(command_name, **options) + conn = self.connection and not need_custom or \ + pool.get_connection(command_name, **options) try: return conn.retry.call_with_retry( @@ -1110,8 +1110,8 @@ class Redis(RedisModuleCommands, CoreCommands, SentinelCommands, object): "Parses a response from the Redis server" try: if 'decode_responses' in options: - response = connection.read_response(decode_responses= - options['decode_responses']) + response = connection.read_response( + decode_responses=options['decode_responses']) else: response = connection.read_response() except ResponseError: -- cgit v1.2.1