diff options
author | 2009-12-14 21:47:33 +0100 | |
---|---|---|
committer | 2009-12-14 21:47:33 +0100 | |
commit | b685f9283a826ac152ecc1f1a8ac1cb01bc5bf0b (patch) | |
tree | 878472059785022578dad8c4dffcc18afbd5f265 /tools | |
parent | Fix a missing replace (diff) | |
download | kernel-check-b685f9283a826ac152ecc1f1a8ac1cb01bc5bf0b.tar.gz kernel-check-b685f9283a826ac152ecc1f1a8ac1cb01bc5bf0b.tar.bz2 kernel-check-b685f9283a826ac152ecc1f1a8ac1cb01bc5bf0b.zip |
Fix invalid CVSS data
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/cron.py | 6 |
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'), |