Skip to content

Commit dd91ff6

Browse files
b31ngd3vb31ngd3v
authored andcommitted
fix: broken quiet mode in main branch (intel#1648)
Co-authored-by: b31ngd3v <[email protected]>
1 parent d82ccd3 commit dd91ff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cve_bin_tool/cvedb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,9 @@ def populate_db(self) -> None:
482482
else:
483483
# error_mode.value will only be greater than 1 if quiet mode.
484484
if self.error_mode.value > 1:
485-
years = track(self.nvd_years(), description="Updating CVEs from NVD...")
486-
else:
487485
years = self.nvd_years()
486+
else:
487+
years = track(self.nvd_years(), description="Updating CVEs from NVD...")
488488

489489
for year in years:
490490
cve_data = self.load_nvd_year(year)

0 commit comments

Comments
 (0)