From e9e350359834de7a58034055e89943c65c0f4dfa Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sat, 4 Feb 2023 10:33:22 +0100 Subject: [PATCH] fix: [index] skip empty 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 c2bf35d..f428044 100644 --- a/backend/sbin/indexer.py +++ b/backend/sbin/indexer.py @@ -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: