Skip to content

Commit

Permalink
fix parse_env_display when env_list is None
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Dec 5, 2024
1 parent 47fea4c commit ff42b28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ff42b28

Please sign in to comment.