Skip to content

gremlin, qt5_graphics: a stopped parse now raises KeyboardInterrupt - #4760

Merged
grandixximo merged 1 commit into
LinuxCNC:2.9from
grandixximo:stop-kbdinterrupt-2.9
Nov 1, 2026
Merged

grandixximo merged 1 commit into
LinuxCNC:2.9from
grandixximo:stop-kbdinterrupt-2.9

Conversation

@grandixximo

Copy link
Copy Markdown
Contributor

Refs #2492, follow-up to #4636.

With the real exception now propagating, an (AXIS,stop) program raises KeyboardInterrupt out of gcode.parse. The file-load handlers in gremlin.py (gmoccapy) and qt5_graphics.py (qtvcp) caught only Exception, so a stopped preview escaped and aborted the load. Catch KeyboardInterrupt as well, same handling as before. AXIS already caught it (axis.py:1292).

Since LinuxCNC#4636 the gcodemodule lets the callback's own exception propagate instead of masking it as RuntimeError. An (AXIS,stop) program raises KeyboardInterrupt, which escaped these Exception-only handlers on file load. AXIS already catches it. Refs LinuxCNC#2492.
@grandixximo
grandixximo merged commit 26a2827 into LinuxCNC:2.9 Nov 1, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant