summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2014-01-02 12:53:43 -0800
committerAndy McCurdy <andy@andymccurdy.com>2014-01-02 12:53:43 -0800
commit97d09968346c010f8fac34e4ed99daa962fd5393 (patch)
treee4454163c7843db889d2d79605a0734c879c4f5e
parentd12419e5036616aec7078f82492fa8c69442a475 (diff)
parent0baab568c2526520f28c08433c59d1604e4719e5 (diff)
downloadredis-py-97d09968346c010f8fac34e4ed99daa962fd5393.tar.gz
Merge pull request #414 from shearic/fix_badconnection
this issue fixes #413
-rw-r--r--redis/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index 4071d32..afa512a 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -2061,6 +2061,7 @@ class BasePipeline(object):
response.insert(i, e)
if len(response) != len(commands):
+ self.connection.disconnect()
raise ResponseError("Wrong number of response items from "
"pipeline execution")