1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

fix(core): handle uncaught exceptions from main.py

[no changelog]
This commit is contained in:
Martin Milata 2024-01-24 10:44:12 +01:00 committed by matejcik
parent 5dc193a552
commit 3c7a6dd68a

View File

@ -219,6 +219,9 @@ int main(void) {
printf("CORE: Main script finished, cleaning up\n");
mp_deinit();
// Python code shouldn't ever exit, avoid black screen if it does
error_shutdown("INTERNAL ERROR", "(PE)");
return 0;
}