def signal_handler(signal, frame): try: GenNotify.Close() Queue.Close() except Exception as e1: log.error("signal_handler: " + str(e1)) sys.exit(0)
def signal_handler(signal, frame): try: GenNotify.Close() SMS.Close() except: pass sys.exit(0)
def signal_handler(signal, frame): GenNotify.Close() sys.exit(0)