From 3e0afe2a842c93c896b74c003f4221fd15cc7328 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sat, 4 Feb 2023 10:25:35 +0100 Subject: [PATCH] fix: [indexer] skip empty MITRE ATT&CK CTI description --- backend/sbin/indexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/sbin/indexer.py b/backend/sbin/indexer.py index f022147..c2bf35d 100644 --- a/backend/sbin/indexer.py +++ b/backend/sbin/indexer.py @@ -51,7 +51,7 @@ for ctype in cycat_type: if 'description' in toindex: title = title + 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'] content = content + toindex['mitre-cti:description'] if 'github:description' in toindex: