From ff42b288a6facaf8aa7feb37c6fc0a2d41c79281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A0=E7=A3=8A?= Date: Thu, 5 Dec 2024 20:37:44 +0800 Subject: [PATCH] fix parse_env_display when env_list is None --- common/tool.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/tool.py b/common/tool.py index 96e49d13..1a03f949 100644 --- a/common/tool.py +++ b/common/tool.py @@ -1235,6 +1235,8 @@ def parse_env(env_string, stdio=None): @staticmethod def parse_env_display(env_list): env_dict = {} + if not env_list: + return {} for env_string in env_list: # 分割键和值 key_value = env_string.split('=', 1)