From d4d2ddf8cd28d5b24d38bae32714bdf7af8aa8e6 Mon Sep 17 00:00:00 2001 From: topscoder <86197446+topscoder@users.noreply.github.com> Date: Mon, 13 May 2024 18:56:21 +0200 Subject: [PATCH] Bugfix where parser crashed if description is non-existent --- lib/parsers/WordfenceAPIParser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/parsers/WordfenceAPIParser.py b/lib/parsers/WordfenceAPIParser.py index d0e9d80fe8..a33a5e771b 100644 --- a/lib/parsers/WordfenceAPIParser.py +++ b/lib/parsers/WordfenceAPIParser.py @@ -88,6 +88,8 @@ def process_item(self, json_object, overwrite, force, overwrite_enhanced): title = json_object.get('title') id = json_object.get('id') description = json_object.get('description') + if description is None: + description = "" # CVE detection cve_id = json_object.get('cve') @@ -109,7 +111,6 @@ def process_item(self, json_object, overwrite, force, overwrite_enhanced): if match: cve_number = match.group(0) cve_id = cve_number - print("CVE number found:", cve_number) else: cve_id = ""