|
@@ -336,7 +336,7 @@ class CVE:
|
|
filename = CVE.download_nvd_year(nvd_dir, year)
|
|
filename = CVE.download_nvd_year(nvd_dir, year)
|
|
try:
|
|
try:
|
|
content = ijson.items(gzip.GzipFile(filename), 'CVE_Items.item')
|
|
content = ijson.items(gzip.GzipFile(filename), 'CVE_Items.item')
|
|
- except:
|
|
|
|
|
|
+ except: # noqa: E722
|
|
print("ERROR: cannot read %s. Please remove the file then rerun this script" % filename)
|
|
print("ERROR: cannot read %s. Please remove the file then rerun this script" % filename)
|
|
raise
|
|
raise
|
|
for cve in content:
|
|
for cve in content:
|