summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py2
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()