From 4592eebea0037181fdb6519a80ca6716e15efc31 Mon Sep 17 00:00:00 2001 From: zhaojing1987 Date: Tue, 30 Apr 2024 12:59:55 +0800 Subject: [PATCH] fix install app bug --- apphub/src/config/config.ini | 2 +- apphub/src/core/envHelper.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apphub/src/config/config.ini b/apphub/src/config/config.ini index c50f4b08..35e2bfb0 100755 --- a/apphub/src/config/config.ini +++ b/apphub/src/config/config.ini @@ -28,4 +28,4 @@ port = 9000 keys = [favorite_apps] -keys = \ No newline at end of file +keys = wordpress \ No newline at end of file diff --git a/apphub/src/core/envHelper.py b/apphub/src/core/envHelper.py index 79d11b20..626caa03 100644 --- a/apphub/src/core/envHelper.py +++ b/apphub/src/core/envHelper.py @@ -34,6 +34,9 @@ class EnvHelper: value = re.sub(pattern, lambda match: resolve_value(values.get(match.group(1), '')), value) return value + + if key not in values: + return None return resolve_value(values.get(key)) except Exception as e: