Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
Merge branch 'andy'
Browse files Browse the repository at this point in the history
  • Loading branch information
dcolish committed Mar 14, 2011
2 parents 2f772ba + 47d8b68 commit 2897057
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Expand Up @@ -9,6 +9,9 @@
* Lock objects now store their timeout value as a float. This allows floats
to be used as timeout values. No changes to existing code required.
* WATCH now supports multiple keys. Thanks Rich Schumacher.
* Broke out some code that was Python 2.4 incompatible. redis-py should
now be useable on 2.4, but this hasn't actually been tested. Thanks
Dan Colish for the patch.
* 2.2.3
* Added support for Hiredis. To use, simply "pip install hiredis" or
"easy_install hiredis". Thanks for Pieter Noordhuis for the hiredis-py
Expand Down
4 changes: 2 additions & 2 deletions redis/connection.py
Expand Up @@ -57,8 +57,8 @@ def send(self, command, redis_instance):
except socket.error, e:
if e.args[0] == errno.EPIPE:
self.disconnect()
if isinstance(e.args, basestring):
_errno, errmsg = 'UNKNOWN', e.args
if len(e.args) == 1:
_errno, errmsg = 'UNKNOWN', e.args[0]
else:
_errno, errmsg = e.args
raise ConnectionError("Error %s while writing to socket. %s." % \
Expand Down

0 comments on commit 2897057

Please sign in to comment.