def _run(self): while True: try: hotCars.tick(tweetLive = self.LIVE) except Exception as e: import traceback tb = traceback.format_exc() logger.error("HotCarApp Caught Error! %s\nTraceback:\n%s"%(str(e), tb)) gevent.sleep(self.SLEEP)
def _run(self): while True: try: hotCars.tick(tweetLive=self.LIVE) except Exception as e: import traceback tb = traceback.format_exc() logger.error("HotCarApp Caught Error! %s\nTraceback:\n%s" % (str(e), tb)) gevent.sleep(self.SLEEP)
def runOnce(self, tweetLive=False, log=sys.stdout): # Establish connection with the database # Run one cycle of the hotcar app hotCars.tick(self.db, tweetLive=tweetLive, log=log)