diff options
author | Konstantin Merenkov <kmerenkov@gmail.com> | 2010-04-01 03:44:07 +0400 |
---|---|---|
committer | Konstantin Merenkov <kmerenkov@gmail.com> | 2010-04-01 03:44:07 +0400 |
commit | b33a6fc9351e19fb058eb5302d1f185ec50c75c6 (patch) | |
tree | 5cbcb5fb18fc4a061843783a9496ce3b9460fad3 /redis/client.py | |
parent | 7b1f19686cfbd451348f836abfaeae39ca1932ec (diff) | |
download | redis-py-b33a6fc9351e19fb058eb5302d1f185ec50c75c6.tar.gz |
Not consuming responses for subscribe commands.
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/redis/client.py b/redis/client.py index abbb2d6..496e28f 100644 --- a/redis/client.py +++ b/redis/client.py @@ -258,17 +258,15 @@ class Redis(threading.local): "UNSUBSCRIBE while channels are open") try: self.connection.send(command, self) - response = self.parse_response(command_name, **options) if subscription_command: return None - return response + return self.parse_response(command_name, **options) except ConnectionError: self.connection.disconnect() self.connection.send(command, self) - response = self.parse_response(command_name, **options) if subscription_command: return None - return response + return self.parse_response(command_name, **options) def execute_command(self, *args, **options): "Sends the command to the redis server and returns it's response" |