Skip to content

Commit daad08e

Browse files
Launcher: fix handling of empty filesystem without apps
1 parent cf1991a commit daad08e

File tree

1 file changed

+6
-6
lines changed
  • internal_filesystem/builtin/apps/com.micropythonos.launcher/assets

1 file changed

+6
-6
lines changed

internal_filesystem/builtin/apps/com.micropythonos.launcher/assets/launcher.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ def onResume(self, screen):
6060
main_launcher = mpos.apps.find_main_launcher_activity(app)
6161
if main_launcher:
6262
app_list.append((app.name, full_path))
63-
except OSError:
64-
print(f"launcher.py stat of {full_path} got OSError: {e}")
65-
except OSError:
66-
print(f"launcher.py listdir of {dir_path} got OSError: {e}")
67-
except OSError:
68-
print(f"launcher.py stat of {dir_path} got OSError: {e}")
63+
except Exception as e:
64+
print(f"launcher.py stat of {full_path} got exception: {e}")
65+
except Exception as e:
66+
print(f"launcher.py listdir of {dir_path} got exception: {e}")
67+
except Exception as e:
68+
print(f"launcher.py stat of {dir_path} got exception: {e}")
6969

7070
import time
7171
start = time.ticks_ms()

0 commit comments

Comments
 (0)