Do not mask all exception, there shouldn't be any in price threads now

This commit is contained in:
DarkPhoenix
2011-06-24 02:11:43 +04:00
parent aeb11d8d6b
commit 91df48c81d

View File

@@ -71,22 +71,15 @@ class PriceWorkerThread(threading.Thread):
def processUpdates(self):
queue = self.queue
while True:
try:
# Grab our data and re-release the lock
callback, requests = queue.get()
# Grab our data
callback, requests = queue.get()
# Grab prices, this is the time-consuming part
if len(requests) > 0:
eos.types.Price.fetchPrices(*requests)
# Grab prices, this is the time-consuming part
if len(requests) > 0:
eos.types.Price.fetchPrices(*requests)
wx.CallAfter(callback)
except:
pass
finally:
try:
queue.task_done()
except:
pass
wx.CallAfter(callback)
queue.task_done()
def trigger(self, prices, callbacks):
self.queue.put((callbacks, prices))