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)