From 904c0121bcd7cb5a02bb96a75fd35ae71cabc8ef Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Tue, 21 Jan 2025 11:11:35 +0800 Subject: [PATCH] build: compilemessages i18n --- apps/smartdoc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/smartdoc/conf.py b/apps/smartdoc/conf.py index 79afdfd0150..de61cb8e339 100644 --- a/apps/smartdoc/conf.py +++ b/apps/smartdoc/conf.py @@ -199,7 +199,7 @@ def load_from_yml(self): def load_from_env(self): keys = os.environ.keys() config = {key.replace('MAXKB_', ''): os.environ.get(key) for key in keys if key.startswith('MAXKB_')} - if len(config.keys()) <= 1: + if len(config.keys()) <= 0: msg = f""" Error: No config env found.