def run(self): try: sixwatch.main(self.mac) except Exception, e: print "Exception caught in sixwatch, aborting: " + str(e) pass
def run(self): while True: try: sixwatch.main(self.mac) except Exception, e: print "Exception caught in sixwatch, restarting: " + str(e)
def run(self): while True: try: sixwatch.main(self.mac) except Exception as e: print("Exception caught in sixwatch, restarting: " + str(e))