def run(self): self.Start() while 1: try: time.sleep(1) except SystemExit: self.Shutdown() return except KeyboardInterrupt: #error("SIGINT, Exiting") self.Shutdown() return except Exception, e: #error("parsing command line") Log.Except(e)