From 8e8dd483e5501da8d4966f1c0150b18e65ea16ad Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Wed, 11 May 2016 15:07:34 +0000 Subject: [PATCH] Use get_key_values() with option must_exist=True. --- tools/oneclick/base/hdl_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/oneclick/base/hdl_config.py b/tools/oneclick/base/hdl_config.py index 191cf57909..fb3c3bffbd 100644 --- a/tools/oneclick/base/hdl_config.py +++ b/tools/oneclick/base/hdl_config.py @@ -115,10 +115,10 @@ class HdlConfig: self.libs.remove_dict_from_list(ld) # Keep list of removed HDL library names of found, but removed technology dicts - self.removed_lib_names = self.libs.get_key_values('hdl_lib_name', self.removed_dicts) + self.removed_lib_names = self.libs.get_key_values(key='hdl_lib_name', dicts=self.removed_dicts, must_exist=True) # Keep list of used HDL library names - self.lib_names = self.libs.get_key_values('hdl_lib_name') + self.lib_names = self.libs.get_key_values(key='hdl_lib_name', must_exist=True) # Check that there are no duplicate library names (eg. due to copying a hdlib.cfg without modifying the hdl_lib_name value) duplicate_lib_names = cm.list_duplicates(self.lib_names) -- GitLab