Skip to content

Commit 7464139

Browse files
author
Whit Morriss
committed
make compatible with small change in 2.2.2 redis client
1 parent 4e54774 commit 7464139

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyres/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def push(self, queue, item):
108108
def pop(self, queue, timeout=10):
109109
ret = self.redis.blpop("resque:queue:%s" % queue, timeout=timeout)
110110
if ret:
111+
if isinstance(ret, tuple):
112+
q, ret = ret
111113
return ResQ.decode(ret)
112114
return ret
113115

0 commit comments

Comments
 (0)