human
Complete the below
def handle_ctrl_c():

    ''''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.'
    '''

Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.
    oldhook = sys.excepthook
    def newhook(exctype, value, traceback):
        if (exctype == KeyboardInterrupt):
            log('\nInterrupted.\n')
        else:
            return oldhook(exctype, value, traceback)
    sys.excepthook = newhook