This commit is contained in:
Josh Hawkins
2024-05-25 21:37:53 -05:00
committed by GitHub
parent 681c7367d7
commit 3f171e7670
2 changed files with 2 additions and 2 deletions

View File

@@ -237,7 +237,7 @@ def update_yaml(data, key_path, new_value):
temp[key[0]] += [{}] * (key[1] - len(temp[key[0]]) + 1)
temp = temp[key[0]][key[1]]
else:
if key not in temp:
if key not in temp or temp[key] is None:
temp[key] = {}
temp = temp[key]