def thread_fetch(self): conn = sqlite3.connect(self.path + '/verycd.sqlite3.db') conn.text_factory = str while True: topic = self.q.get() try: fetchvc.fetch(topic, conn) except: pass self.q.task_done()
def thread_fetch(self): conn = sqlite3.connect(self.path+'/verycd.sqlite3.db') conn.text_factory = str while True: topic = self.q.get() try: fetchvc.fetch(topic,conn) except: pass self.q.task_done()
def thread_fetch(self): conn = sqlite3.connect(self.path+'/verycd.sqlite3.db') conn.text_factory = str while True: topic = self.q.get() if str(topic)=='feed': open(self.path+'/static/feed.xml','w').write(feed(self.path,conn)) self.q.task_done() continue try: fetchvc.fetch(topic,conn) except: pass self.q.task_done()