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
......@@ -87,9 +87,12 @@ def no_apps_message():
if __name__ == "__main__":
apps = list(enumerate_apps())
apps = list(enumerate_apps())
except OSError:
apps = []
if apps == []:
if not apps:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment