def mainException(s): if isinstance(sys.exc_info()[1], KeyboardInterrupt) and \ s.iswaiting: sys.stdout.write("Timer interrupted at user request; program terminating. \n") s.terminate() else: UIBase.mainException(s)
def mainException(s): if isinstance(sys.exc_info()[1], KeyboardInterrupt) and \ s.iswaiting: sys.stdout.write("Timer interrupted at user request; program terminating. \n") s.terminate() else: UIBase.mainException(s)
def mainException(s): s.c.stop() UIBase.mainException(s)
def mainException(s): s.c.stop() UIBase.mainException(s)