From ff11f9a17a60029781d3bb46ef387515f5b9e5f7 Mon Sep 17 00:00:00 2001 From: Salvatore Bonaccorso Date: Wed, 4 Mar 2020 17:02:10 +0100 Subject: 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 --- lib/python/nvd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3