Skip to content

Commit

Permalink
Redis backend was broken (too many values to unpack). Closes #6. Than…
Browse files Browse the repository at this point in the history
…ks to ducky427
  • Loading branch information
Ask Solem committed Aug 27, 2010
1 parent 425adff commit b46753c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ghettoq/backends/pyredis.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ def get_many(self, queues, timeout=None):
raise Empty

try:
item, dest = self.client.brpop(queues, timeout=1)
dest, item = self.client.brpop(queues, timeout=1)
except TypeError:
raise Empty

return item
return item, dest

def purge(self, queue):
size = self.client.llen(queue)
Expand Down

0 comments on commit b46753c

Please sign in to comment.