human
Complete this python program:
def handle_ctrl_c():
assistant
#Here is the Python program you requested.

    """Replace the default exception handler for KeyboardInterrupt (Ctrl-C).
    The new exception handler will make sure that bup will exit without an ugly
    stacktrace when Ctrl-C is hit.
    """
    oldhook = sys.excepthook
    def newhook(exctype, value, traceback):
        if (exctype == KeyboardInterrupt):
            log('\nInterrupted.\n')
        else:
            return oldhook(exctype, value, traceback)
    sys.excepthook = newhook