[enh] more robust code
This commit is contained in:
parent
46a9d26c69
commit
f417d5740f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user