This repository was archived by the owner on Aug 31, 2025. It is now read-only.
How does mu know it crashed? #2195
Answered
by
carlosperate
Tinkering-Townsperson
asked this question in
Q&A
-
My question: How does the mu editor know it crashed? Is there some sort of library it uses to handle crashes? |
Beta Was this translation helpful? Give feedback.
Answered by
carlosperate
May 10, 2022
Replies: 1 comment 1 reply
-
You can use the sys.excepthook Python feature to capture uncaught exceptions: You can see how it was implemented in Mu here: Lines 168 to 198 in 0596a52 Line 234 in 0596a52 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Tinkering-Townsperson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the sys.excepthook Python feature to capture uncaught exceptions:
https://docs.python.org/3/library/sys.html#sys.excepthook
You can see how it was implemented in Mu here:
mu/mu/app.py
Lines 168 to 198 in 0596a52