summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index a3359ae..e135776 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -1781,8 +1781,15 @@ class BasePipeline(object):
starmap(connection.pack_command,
[args for args, options in commands]))
connection.send_packed_command(all_cmds)
- response = [self.parse_response(connection, args[0], **options)
- for args, options in commands]
+
+ response = []
+ for args, options in commands:
+ try:
+ response.append(
+ self.parse_response(connection, args[0], **options))
+ except ResponseError as error:
+ response.append(error)
+
if raise_on_error:
self.raise_first_error(response)
return response