[Git][security-tracker-team/security-tracker][master] nvd.py: Fix typo in Parser when issueing error (VAlueError -> ValueError)

Salvatore Bonaccorso carnil at debian.org
Wed Mar 4 16:05:23 GMT 2020



Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / security-tracker


Commits:
ff11f9a1 by Salvatore Bonaccorso at 2020-03-04T17:02:59+01:00
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 at debian.org>

- - - - -


1 changed file:

- lib/python/nvd.py


Changes:

=====================================
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



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/ff11f9a17a60029781d3bb46ef387515f5b9e5f7

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/ff11f9a17a60029781d3bb46ef387515f5b9e5f7
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20200304/622d32ed/attachment.html>


More information about the debian-security-tracker-commits mailing list