Fixed a bug that caused a crash when having empty technique ID entries within the 'exception' list of a data source administration YAML file.
parent
098681f239
commit
0c15c1ffde
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue