From 0c15c1ffde5ded315bbca4e00b3a1d77245b7fbe Mon Sep 17 00:00:00 2001 From: Marcus Bakker Date: Thu, 17 Oct 2019 13:51:28 +0200 Subject: [PATCH] Fixed a bug that caused a crash when having empty technique ID entries within the 'exception' list of a data source administration YAML file. --- data_source_mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_source_mapping.py b/data_source_mapping.py index 5784f04..4e722d6 100644 --- a/data_source_mapping.py +++ b/data_source_mapping.py @@ -189,7 +189,7 @@ def _load_data_sources(file, filter_empty_scores=True): name = yaml_content['name'] platform = yaml_content['platform'] - exceptions = [t['technique_id'] for t in yaml_content['exceptions']] + exceptions = [t['technique_id'] for t in yaml_content['exceptions'] if t['technique_id'] is not None] return my_data_sources, name, platform, exceptions