From b685f9283a826ac152ecc1f1a8ac1cb01bc5bf0b Mon Sep 17 00:00:00 2001 From: Bjoern Tropf Date: Mon, 14 Dec 2009 21:47:33 +0100 Subject: Fix invalid CVSS data --- tools/cron.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/cron.py b/tools/cron.py index 85228e4..a5679e2 100755 --- a/tools/cron.py +++ b/tools/cron.py @@ -235,6 +235,12 @@ def parse_nvd_dict(directory): namespace = root.tag[:-3] for tree in root: + + if tree.get('severity') is None \ + or tree.get('CVSS_vector') is None \ + or tree.get('CVSS_score') is None: + continue + cve = { 'cve' : tree.get('name'), 'published' : tree.get('published'), -- cgit v1.2.3-65-gdbad