diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2010-12-31 17:55:27 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2010-12-31 17:55:27 -0800 |
commit | a2ea316908fde976bd7b0a102714d0e9b949ee6c (patch) | |
tree | 231e61fabf79319b50b8867ab2227a491eb38a65 /redis/client.py | |
parent | 5f99011ae98809ffc569793cd9896c24d1d9ee6b (diff) | |
download | redis-py-a2ea316908fde976bd7b0a102714d0e9b949ee6c.tar.gz |
fix for #91 and #92. errno import was being overwritten by the same local variable name.
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 6 |
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): """ |