From daad08e08dd6daeda006b6c839fe0b3d29942596 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Mon, 20 Oct 2025 22:23:12 +0200 Subject: [PATCH] Launcher: fix handling of empty filesystem without apps --- .../com.micropythonos.launcher/assets/launcher.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal_filesystem/builtin/apps/com.micropythonos.launcher/assets/launcher.py b/internal_filesystem/builtin/apps/com.micropythonos.launcher/assets/launcher.py index 376ec1f0..b8a449e3 100644 --- a/internal_filesystem/builtin/apps/com.micropythonos.launcher/assets/launcher.py +++ b/internal_filesystem/builtin/apps/com.micropythonos.launcher/assets/launcher.py @@ -60,12 +60,12 @@ class Launcher(mpos.apps.Activity): main_launcher = mpos.apps.find_main_launcher_activity(app) if main_launcher: app_list.append((app.name, full_path)) - except OSError: - print(f"launcher.py stat of {full_path} got OSError: {e}") - except OSError: - print(f"launcher.py listdir of {dir_path} got OSError: {e}") - except OSError: - print(f"launcher.py stat of {dir_path} got OSError: {e}") + except Exception as e: + print(f"launcher.py stat of {full_path} got exception: {e}") + except Exception as e: + print(f"launcher.py listdir of {dir_path} got exception: {e}") + except Exception as e: + print(f"launcher.py stat of {dir_path} got exception: {e}") import time start = time.ticks_ms()