1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

[enh] more robust code

This commit is contained in:
Laurent Peuch 2017-01-30 23:52:05 +01:00
parent 46a9d26c69
commit f417d5740f

View file

@ -203,7 +203,7 @@ for app, info in apps_list.items():
'lastUpdate': timestamp, 'lastUpdate': timestamp,
'manifest': manifest, 'manifest': manifest,
'state': info['state'], 'state': info['state'],
'level': info['level'] 'level': info.get('level', '?')
} }
except KeyError as e: except KeyError as e:
print("-> Error: invalid app info or manifest, %s" % e) print("-> Error: invalid app info or manifest, %s" % e)