From 91df48c81d4d9337115cbe31e6eb647dec632f85 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Fri, 24 Jun 2011 02:11:43 +0400 Subject: [PATCH] Do not mask all exception, there shouldn't be any in price threads now --- service/market.py | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/service/market.py b/service/market.py index 846245ff3..7425410dc 100644 --- a/service/market.py +++ b/service/market.py @@ -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))