2026 03-March 14

Date: 2026 03-March 14

exit_on_interrupt = exit_on_interrupt,

exit_on_interrupt: bool = False,

if exc_name in stop_signals or isinstance(e, (KeyboardInterrupt, PromptCancelled)):

                    logger.debug(f">>> MATCHED STOP SIGNAL: {exc_name}. EXITING FUNCTION.")

                    if interrupt_event:

                        interrupt_event.set()

                    if exit_on_interrupt:

                        # We use sys.stderr to ensure the user sees why the program died

                        print("\n[!] User Interrupted. Exiting.", file=sys.stderr)

                        sys.exit(130) # Standard SIGINT exit code

                    else:

                        return None