fix: [indexer] skip empty MITRE ATT&CK CTI description

main
Alexandre Dulaunoy 2023-02-04 10:25:35 +01:00
parent 0a907bb664
commit 3e0afe2a84
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ for ctype in cycat_type:
if 'description' in toindex: if 'description' in toindex:
title = title + toindex['description'] title = title + toindex['description']
content = content + toindex['description'] content = content + toindex['description']
if 'mitre-cti:description' in toindex: if 'mitre-cti:description' in toindex and toindex['mitre-cti:description'] is not None:
title = title + toindex['mitre-cti:description'] title = title + toindex['mitre-cti:description']
content = content + toindex['mitre-cti:description'] content = content + toindex['mitre-cti:description']
if 'github:description' in toindex: if 'github:description' in toindex: