KeyboardInterrupt
python KeyboardInterrupt
Raised when the user presses the interrupt key (Ctrl+C or Delete). Derives from BaseException so that finally blocks run but most broad except clauses do not accidentally suppress it.
Raised when the user presses the interrupt key (Ctrl+C or Delete). Derives from BaseException so that finally blocks run but most broad except clauses do not accidentally suppress it.