From b964b5e2a61f4af811b400d7f28845db21dd18e0 Mon Sep 17 00:00:00 2001 From: Christian Studer Date: Mon, 24 Oct 2022 15:43:04 +0200 Subject: [PATCH] fix: [variodbs] Fixed the empty vulnerability results case handling, to avoid the module to stop before looking for related exploits --- misp_modules/modules/expansion/variotdbs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misp_modules/modules/expansion/variotdbs.py b/misp_modules/modules/expansion/variotdbs.py index eaa5ea3..9b67d88 100644 --- a/misp_modules/modules/expansion/variotdbs.py +++ b/misp_modules/modules/expansion/variotdbs.py @@ -181,7 +181,7 @@ def handler(q=False): parser.parse_vulnerability_information(vulnerability_results) empty = False else: - if r.reason != 'Not found': + if r.reason != 'Not Found': return {'error': 'Error while querying the variotdbs API.'} r = requests.get(f"{variotdbs_url}/exploits/?cve={attribute['value']}", headers=headers) if r.status_code == 200: