summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Tropf <asym@gentoo.org>2009-12-14 21:47:33 +0100
committerBjoern Tropf <asym@gentoo.org>2009-12-14 21:47:33 +0100
commitb685f9283a826ac152ecc1f1a8ac1cb01bc5bf0b (patch)
tree878472059785022578dad8c4dffcc18afbd5f265
parentFix a missing replace (diff)
downloadkernel-check-b685f9283a826ac152ecc1f1a8ac1cb01bc5bf0b.tar.gz
kernel-check-b685f9283a826ac152ecc1f1a8ac1cb01bc5bf0b.tar.bz2
kernel-check-b685f9283a826ac152ecc1f1a8ac1cb01bc5bf0b.zip
Fix invalid CVSS data
-rwxr-xr-xtools/cron.py6
1 files changed, 6 insertions, 0 deletions
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'),