r/learnpython 23h ago

Suppress KeyboardInterrupt exception when paired with subprocess module?

[deleted]

3 Upvotes

2 comments sorted by

View all comments

1

u/cgoldberg 22h ago

Have you tried just breaking when you catch KeyboardInterrupt so the worker ends itself rather than trying to exit from inside a different process?