Fix error in deep_dict when settings substructure defaults to None
This commit is contained in:
1 parent
3893b700f6
commit
4070702931
1 file changed
+1
-1
@@ -419,7 +419,7 @@ class HierarchicalChainMap(ChainMap):
|
||||
def _hierarchy_for_key(cls, key, chain):
|
||||
wrapped_mappings = list()
|
||||
for mapping in chain.maps:
|
||||
if key in mapping:
|
||||
if key in mapping and mapping[key] is not None:
|
||||
wrapped_mappings.append(mapping[key])
|
||||
else:
|
||||
wrapped_mappings.append(dict())
|
||||
|
||||
Reference in new issue
Block a user