# HG changeset patch # User mcroydon # Date 1292520620 0 # Node ID a73463a6bf1c1b875133c24c9faaa470ec1d3dca # Parent 363a3d8bd466b92dea9cf891ad1270e54d812918 Modern redis servers return 1 instead of 'OK'. Check for both. diff -r 363a3d8bd466 -r a73463a6bf1c queues/backends/redisd.py --- a/queues/backends/redisd.py Thu Dec 16 16:46:17 2010 +0000 +++ b/queues/backends/redisd.py Thu Dec 16 17:30:20 2010 +0000 @@ -63,7 +63,7 @@ def write(self, value): try: resp = self._connection.rpush(self.name, value) - if resp == 'OK': + if resp in ('OK', 1): return True else: return False