summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorandy <andy@whiskeymedia.com>2012-10-07 20:42:56 -0700
committerandy <andy@whiskeymedia.com>2012-10-07 20:42:56 -0700
commite46c78bc14cde3f371ae2b520d206f5f62923d46 (patch)
tree193d99e8d07aac67cbd1b818b1a257399089b2f2 /redis/client.py
parentdd954672b58240ff106dcd18f60fffb23a0c08cc (diff)
downloadredis-py-e46c78bc14cde3f371ae2b520d206f5f62923d46.tar.gz
python3 compat
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index 2ff5630..3e84056 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -1,6 +1,7 @@
from __future__ import with_statement
from itertools import chain, starmap
import datetime
+import sys
import warnings
import time as mod_time
from redis._compat import (b, izip, imap, iteritems, dictkeys, dictvalues,
@@ -1641,8 +1642,8 @@ class BasePipeline(object):
for i, _ in enumerate(commands):
try:
self.parse_response(connection, '_')
- except ResponseError, e:
- errors.append((i, e))
+ except ResponseError:
+ errors.append((i, sys.exc_info()[1]))
# parse the EXEC.
response = self.parse_response(connection, '_')