Skip to content
This repository was archived by the owner on Aug 31, 2025. It is now read-only.

Except KeyboardInterrupt ignored when running user code on Windows #1743

@eugene-bce

Description

@eugene-bce
try:
    # Drone code

except KeyboardInterrupt:
    # Safe land code

The KeyboardInterrupt exception does not run as ctrl+c kills the program regardless. My students are using Mu to program parrot mambos and I need an emergency stop for them. With Idle we'd use ctrl+c and handle the KeyboardInterrupt to land the drone safely. Unfortunatley in Mu it immediately exits the program instead, leaving the drone floating in mid-air.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions