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:
parent
46a9d26c69
commit
f417d5740f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue