summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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'),