Skip to content

Commit f5db96e

Browse files
fix: if default values.yaml has screwed up types then this will help
1 parent 1af354e commit f5db96e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

yamldifftool.py

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def traverse_and_set(user_provided, root_diff, path):
1616
def filter_defaults(base, user_provided, root_diff, path=[], strict=False):
1717
if type(user_provided) is dict:
1818
for key in user_provided.keys():
19+
if base is None:
20+
continue
21+
if type(base) is str:
22+
continue
1923
if not strict and key not in base.keys():
2024
traverse_and_set(user_provided.get(key), root_diff, path + [key])
2125
elif key in base.keys():

0 commit comments

Comments
 (0)