Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Haun
firmware
Commits
428281b3
Commit
428281b3
authored
Oct 04, 2019
by
Rahix
Browse files
Merge 'Catch OSError if apps/ is missing'
See merge request
card10/firmware!329
parents
b4641dde
97681291
Changes
1
Hide whitespace changes
Inline
Side-by-side
preload/menu.py
View file @
428281b3
...
...
@@ -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
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment