Launcher: fix handling of empty filesystem without apps

This commit is contained in:
Thomas Farstrike
2025-10-20 22:23:12 +02:00
parent cf1991a602
commit daad08e08d
@@ -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()