From ee75e13312d10dbfe6db9ab337f2926c69ec34a4 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Thu, 11 Aug 2022 00:53:20 +0200 Subject: [PATCH] [fix] Unstable apps if from_catalog is missing --- src/yunohost/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 6d7ebf3f3..01f4df209 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -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