diff options
author | Salvatore Bonaccorso <carnil@debian.org> | 2020-03-04 17:02:10 +0100 |
---|---|---|
committer | Salvatore Bonaccorso <carnil@debian.org> | 2020-03-04 17:02:59 +0100 |
commit | ff11f9a17a60029781d3bb46ef387515f5b9e5f7 (patch) | |
tree | 96db880580bdaedd382a12844ad8576d7eba1d91 /lib | |
parent | 2c78a446f11d291d1fd41f4742b9db9995c3a5af (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.py | 2 |
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 |