mirror of https://github.com/celery/kombu.git
PEP8ify
This commit is contained in:
parent
a10c9ee44b
commit
cfd12301ea
|
@ -32,8 +32,9 @@ class Channel(virtual.Channel):
|
|||
|
||||
def _get(self, queue):
|
||||
try:
|
||||
msg = self.client.database.command("findandmodify",
|
||||
"messages", query={"queue": queue}, sort={'_id' : pymongo.ASCENDING }, remove=True)
|
||||
msg = self.client.database.command("findandmodify", "messages",
|
||||
query={"queue": queue},
|
||||
sort={"_id": pymongo.ASCENDING}, remove=True)
|
||||
except errors.OperationFailure, exc:
|
||||
if "No matching object found" in exc.args[0]:
|
||||
raise Empty()
|
||||
|
|
Loading…
Reference in New Issue