Skip to content

Commit e341c83

Browse files
Add comments about text-based fallback
1 parent e916515 commit e341c83

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal_filesystem/lib/mpos/ui/display.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ def init_rootscreen():
2323
img.set_blend_mode(lv.BLEND_MODE.DIFFERENCE) # invert the logo color
2424
img.center()
2525
except Exception as e: # if image loading fails
26-
print(f"Falling back to text-based logo because image loading failed: {e}")
27-
screen.clean()
26+
print(f"ERROR: logo image failed, LVGL will be in a bad state and the UI will hang: {e}")
27+
import sys
28+
sys.print_exception(e)
29+
print("Trying to fall back to a simple text-based 'logo' but it won't showup because the UI broke...")
2830
label = lv.label(screen)
2931
label.set_text("MicroPythonOS")
3032
label.set_style_text_font(lv.font_montserrat_20, lv.PART.MAIN)

0 commit comments

Comments
 (0)