From 1431a5e82a5a2fcade9a29e9104e811c8ec75ad5 Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Tue, 9 Jul 2024 01:40:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#2518=20=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84debug=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/plugin.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/core/plugin.py b/app/core/plugin.py index 31e41f2b..5e8e1bd8 100644 --- a/app/core/plugin.py +++ b/app/core/plugin.py @@ -815,8 +815,6 @@ class PluginManager(metaclass=Singleton): # 将插件标识转换为大写并构建环境变量名称 env_var_name = f"PLUGIN_{plugin_id.upper()}_PRIVATE_KEY" private_key = os.environ.get(env_var_name) - if private_key is None: - logger.debug(f"环境变量 {env_var_name} 未找到。") return private_key except Exception as e: logger.debug(f"获取插件 {plugin_id} 的私钥时发生错误:{e}")