Fix error in deep_dict when settings substructure defaults to None
This commit is contained in:
parent
3893b700f6
commit
4070702931
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue