diff options
author | Brian Maissy <brian@medigate.io> | 2019-10-24 09:29:00 +0300 |
---|---|---|
committer | Brian Maissy <brian@medigate.io> | 2019-10-24 09:36:21 +0300 |
commit | 2592b20d68a55c3b53f116410dfd515b995b7881 (patch) | |
tree | d0380651346c15047167803e8f9d3251f61bd24e /redis/client.py | |
parent | fa0b0392c86126cae1a264197dddab647fa37821 (diff) | |
download | redis-py-dont-short-circuit-execute-when-watching.tar.gz |
Pipeline.execute() doesn't short-circuit on empty command stack if it is watching keysdont-short-circuit-execute-when-watching
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index df1ebfd..1e5ca02 100755 --- a/redis/client.py +++ b/redis/client.py @@ -3670,7 +3670,7 @@ class Pipeline(Redis): def execute(self, raise_on_error=True): "Execute all the commands in the current pipeline" stack = self.command_stack - if not stack: + if not stack and not self.watching: return [] if self.scripts: self.load_scripts() |