From 8eff3074d4e87f310bedd7d81dc39d9c99b07cc4 Mon Sep 17 00:00:00 2001 From: Alejandro Jose Leiva Palomo Date: Mon, 11 Sep 2023 10:18:00 -0600 Subject: [PATCH] fix: not setting empty values Signed-off-by: Alejandro Jose Leiva Palomo --- trestle/core/catalog/catalog_reader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trestle/core/catalog/catalog_reader.py b/trestle/core/catalog/catalog_reader.py index d32228425..423376175 100644 --- a/trestle/core/catalog/catalog_reader.py +++ b/trestle/core/catalog/catalog_reader.py @@ -77,7 +77,8 @@ def read_additional_content( if param_dict[const.PROFILE_VALUES] != [] and param_dict[const.PROFILE_VALUES] is not None: if not write_mode and '' in param_dict[const.PROFILE_VALUES]: param_dict[const.PROFILE_VALUES].remove('') - param_dict[const.VALUES] = param_dict[const.PROFILE_VALUES] + if param_dict[const.PROFILE_VALUES] != [] and param_dict[const.PROFILE_VALUES] is not None: + param_dict[const.VALUES] = param_dict[const.PROFILE_VALUES] if not write_mode: param_dict.pop(const.PROFILE_VALUES) final_param_dict[param_id] = param_dict