from Queue import Queue,Empty import logging class MessageQueue(Queue): def __init__(self): Queue.__init__(self) def get(self): try: return Queue.get(self, False) except Empty: return "" mainMessageQueue = MessageQueue() progressMessageQueue = MessageQueue()