summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/redis/client.py b/redis/client.py
index d173d26..ddfb211 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -86,11 +86,11 @@ class Connection(object):
if e.args[0] == errno.EPIPE:
self.disconnect()
if isinstance(e.args, basestring):
- errno, errmsg = 'UNKNOWN', e.args
+ _errno, errmsg = 'UNKNOWN', e.args
else:
- errno, errmsg = e.args
+ _errno, errmsg = e.args
raise ConnectionError("Error %s while writing to socket. %s." % \
- (errno, errmsg))
+ (_errno, errmsg))
def read(self, length=None):
"""