From 62e19837aa083feea6f0ca5c29c892a8659c874a Mon Sep 17 00:00:00 2001 From: Pesy Wu Date: Sat, 20 Jul 2024 21:48:39 +0800 Subject: [PATCH] #23 Update Condition --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index fe3c406..b4c7619 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ def ReadConf(variable_name, default_value=None): # Try to get the variable from the environment env_value = os.environ.get(variable_name) - if env_value is not None: + if env_value: config_data = yaml.load(env_value, Loader=yaml.FullLoader) return config_data