diff --git a/core/embed/firmware/main.c b/core/embed/firmware/main.c index 1a0d2d546..f21fdeac8 100644 --- a/core/embed/firmware/main.c +++ b/core/embed/firmware/main.c @@ -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; }