From 17d2f0bb0d3c7618ed59968613175d2344fcbdc1 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Wed, 26 Jun 2024 21:39:19 +0800 Subject: [PATCH] fix(api/configs): Ignore empty environment variables when loading config. (#5647) --- api/configs/app_config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/configs/app_config.py b/api/configs/app_config.py index 4467b84c86..f3bab64fb2 100644 --- a/api/configs/app_config.py +++ b/api/configs/app_config.py @@ -36,6 +36,7 @@ class DifyConfig( # read from dotenv format config file env_file='.env', env_file_encoding='utf-8', + env_ignore_empty=True, # ignore extra attributes extra='ignore',