[fix] Unstable apps if from_catalog is missing

This commit is contained in:
ljf (zamentur) 2022-08-11 00:53:20 +02:00 committed by GitHub
parent 48a094a6ff
commit ee75e13312
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2506,10 +2506,10 @@ def unstable_apps():
for infos in app_list(full=True)["apps"]:
if not infos.get("from_catalog") or infos.get("from_catalog").get("state") in [
if not infos.get("from_catalog") or infos.get("from_catalog", {}).get("state") in [
"inprogress",
"notworking",
] or infos["id"] in deprecated_apps or infos.get("from_catalog").get("level") == 0:
] or infos["id"] in deprecated_apps or infos.get("from_catalog", {}).get("level") == 0:
output.append(infos["id"])
return output