In the python documentation, it says
exception Queue.Empty
Exception raised when non-blocking get() (or get_nowait()) is called on a Queue object which is empty.
So I wonder whether the following coding will ever raise the Queue.Empty exception because the way it use 'get' method seems non-blocking.
Here is the code.
try:
request = self._requests_queue.get(True, self._poll_timeout)
except Queue.Empty:
continue