Don't fail autostart if the property doesn't exist

This commit is contained in:
Disassembler 2021-01-09 17:43:11 +01:00
parent e2d4a15251
commit d29cb7739e
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -107,7 +107,7 @@ def autostart(app_name, value):
def start_autostarted(): def start_autostarted():
# Start all applications (resp. their containers) which are set to be autoostarted on boot # 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: for app in apps:
app.start() app.start()