fix: [index] skip empty description

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

View File

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