diff options
author | Randall Leeds <randall.leeds@gmail.com> | 2011-07-11 22:57:43 -0700 |
---|---|---|
committer | Randall Leeds <randall.leeds@gmail.com> | 2011-07-11 22:57:43 -0700 |
commit | a7e7efe7550abe8c04a8c6bb25063e24aae97ca3 (patch) | |
tree | b2cef89987b1390922a38f795624f8f4a805af8a | |
parent | a913d839b21295fc50fd6692416979aa607bb604 (diff) | |
download | redis-py-a7e7efe7550abe8c04a8c6bb25063e24aae97ca3.tar.gz |
only change self.watching when commands succeed
-rw-r--r-- | redis/client.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index ee90c24..97b6135 100644 --- a/redis/client.py +++ b/redis/client.py @@ -1330,11 +1330,12 @@ class Pipeline(Redis): for args, options in commands] def parse_response(self, connection, command_name, **options): + result = Redis.parse_response(self, connection, command_name, **options) if command_name in self.__class__.UNWATCH_COMMANDS: self.watching = False if command_name is 'WATCH': self.watching = True - return Redis.parse_response(self, connection, command_name, **options) + return result def execute(self): "Execute all the commands in the current pipeline" |