From d29cb7739eb71e15323e3bcd38d79aa51c2cbcf7 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 9 Jan 2021 17:43:11 +0100 Subject: [PATCH] Don't fail autostart if the property doesn't exist --- usr/bin/spoc-app | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/spoc-app b/usr/bin/spoc-app index 0be1e92..06ce2e8 100755 --- a/usr/bin/spoc-app +++ b/usr/bin/spoc-app @@ -107,7 +107,7 @@ def autostart(app_name, value): def start_autostarted(): # Start all applications (resp. their containers) which are set to be autoostarted on boot - apps = [App(a) for a,d in repo_local.get_apps().items() if d['autostart']] + apps = [App(a) for a,d in repo_local.get_apps().items() if d.get('autostart')] for app in apps: app.start()