X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=osm_common%2Fdbmemory.py;fp=osm_common%2Fdbmemory.py;h=c57f932f29e6e335af34c8b4171cf209777e56d3;hb=bf6c5729597476199627c6750e8db3a92ce47c9c;hp=bfc396da9a3d852377d2cde024065daab9f0de50;hpb=b95cca6f0bd7e6c20e5ec945def54565de6ac02f;p=osm%2Fcommon.git diff --git a/osm_common/dbmemory.py b/osm_common/dbmemory.py index bfc396d..c57f932 100644 --- a/osm_common/dbmemory.py +++ b/osm_common/dbmemory.py @@ -268,6 +268,9 @@ class DbMemory(DbBase): k_list = k.split(".") k_item_prev = k_list[0] populated = False + if k_item_prev not in db_nested and populate: + populated = True + db_nested[k_item_prev] = None for k_item in k_list[1:]: if isinstance(db_nested[k_item_prev], dict): if k_item not in db_nested[k_item_prev]: