Skip to content

Call to process_one(wait=False) raises exception when there is nothing to processΒ #763

@Kirill888

Description

@Kirill888

I think code here is trying to catch wrong exception:

try:
t, dispatch, args = self.msg_queue.get_nowait()
except asyncio.QueueEmpty:
return None

My guess is that tornado.queues.QueueEmpty was the intended exception, and not asyncio.QueueEmpty

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions