From 490a21cc532e958fd284dad1fa98608714aa2ea2 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Wed, 20 Oct 2010 20:20:00 +0200 Subject: [PATCH] Prefetcher, YOU ARE NOT ALLOWED TO QQ, SHUT UP --- service/prefetch.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/service/prefetch.py b/service/prefetch.py index b55eb03fc..68415cf54 100644 --- a/service/prefetch.py +++ b/service/prefetch.py @@ -24,11 +24,14 @@ class PrefetchThread(threading.Thread): def run(self): # We're a daemon thread, as such, interpreter might get shut down while we do stuff # Make sure we don't throw tracebacks to console - eos.db.getItemsByCategory("Skill", eager=("effects", "attributes", "attributes.info.icon", "attributes.info.unit", "icon")) - cMarket = service.Market.getInstance() - root = cMarket.getShipRoot() - for id, _ in root: - cMarket.getShipList(id) + try: + eos.db.getItemsByCategory("Skill", eager=("effects", "attributes", "attributes.info.icon", "attributes.info.unit", "icon")) + cMarket = service.Market.getInstance() + root = cMarket.getShipRoot() + for id, _ in root: + cMarket.getShipList(id) + except: + pass prefetch = PrefetchThread() prefetch.daemon = True