Skip to content
Snippets Groups Projects
Commit 97681291 authored by dx's avatar dx
Browse files

fix(preload): catch OSError if apps/ is missing

And show the no_apps_message instead of crashing
parent b4641dde
No related branches found
No related tags found
No related merge requests found
......@@ -87,9 +87,12 @@ def no_apps_message():
if __name__ == "__main__":
apps = list(enumerate_apps())
try:
apps = list(enumerate_apps())
except OSError:
apps = []
if apps == []:
if not apps:
no_apps_message()
MainMenu(apps).run()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment