class Worker(threading.Thread): def run(self): print self.name, "running..." while True: if db(db.temperature).isempty(): print "empty" else: print "not empty" time.sleep(1)
Running the above code causes the application to seg fault. Any ideas?
class Worker(threading.Thread): def run(self): print self.name, "running..." while True: if db(db.temperature).isempty(): print "empty" else: print "not empty" time.sleep(1)
Running the above code causes the application to seg fault. Any ideas?