Merge branch 'development' of https://github.com/rabobank-cdc/DeTTACT into development
commit
111395c684
11
generic.py
11
generic.py
|
@ -451,12 +451,12 @@ def check_yaml_file_health(filename, file_type):
|
||||||
print('[!] Technique ID: ' + tech + ' has an INVALID data format for the key-value pair '
|
print('[!] Technique ID: ' + tech + ' has an INVALID data format for the key-value pair '
|
||||||
'in detection: ' + key + ' (should be YYYY-MM-DD)')
|
'in detection: ' + key + ' (should be YYYY-MM-DD)')
|
||||||
|
|
||||||
for key in ['location', 'applicable_to']:
|
for key in ['location', 'applicable_to']:
|
||||||
try:
|
try:
|
||||||
if detection[key][0] is None:
|
if detection[key][0] is None:
|
||||||
print('[!] Technique ID: ' + tech + ' is has an EMPTY key-value pair in detection: ' + key)
|
|
||||||
except TypeError:
|
|
||||||
print('[!] Technique ID: ' + tech + ' is has an EMPTY key-value pair in detection: ' + key)
|
print('[!] Technique ID: ' + tech + ' is has an EMPTY key-value pair in detection: ' + key)
|
||||||
|
except TypeError:
|
||||||
|
print('[!] Technique ID: ' + tech + ' is has an EMPTY key-value pair in detection: ' + key)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -476,3 +476,4 @@ def check_yaml_file_health(filename, file_type):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue