summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2020-03-04 17:02:10 +0100
committerSalvatore Bonaccorso <carnil@debian.org>2020-03-04 17:02:59 +0100
commitac020069c8d4e61e3be369d167f8e8686ee45b9d (patch)
tree78d4b69c5b42e9df04a0e38d0527622410f16367 /lib
parent178098bb647005c309f2641262aa59959ebcedc9 (diff)
nvd.py: Fix typo in Parser when issueing error (VAlueError -> ValueError)
Fixes: 966aef0927e2 ("Reimplement (incompletely) simplistic NVD parser to handle JSON feed") Signed-off-by: Salvatore Bonaccorso <carnil@debian.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/python/nvd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/nvd.py b/lib/python/nvd.py
index f53b2f94ac..eef1f89e1b 100644
--- a/lib/python/nvd.py
+++ b/lib/python/nvd.py
@@ -38,7 +38,7 @@ class _Parser:
if 'CVE_data_meta' not in entry['cve']:
raise ValueError("No CVE metadata entry present")
if 'ID' not in entry['cve']['CVE_data_meta']:
- raise VAlueError("No CVE ID present for entry")
+ raise ValueError("No CVE ID present for entry")
self.name=entry['cve']['CVE_data_meta']['ID']
# get CVE description

© 2014-2024 Faster IT GmbH | imprint | privacy policy