Skip to content

Commit

Permalink
fix: broken quiet mode in main branch (intel#1648)
Browse files Browse the repository at this point in the history
Co-authored-by: b31ngd3v <b31ngd3v@gmail.com>
  • Loading branch information
2 people authored and anthonyharrison committed May 2, 2022
1 parent d82ccd3 commit dd91ff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cve_bin_tool/cvedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,9 @@ def populate_db(self) -> None:
else:
# error_mode.value will only be greater than 1 if quiet mode.
if self.error_mode.value > 1:
years = track(self.nvd_years(), description="Updating CVEs from NVD...")
else:
years = self.nvd_years()
else:
years = track(self.nvd_years(), description="Updating CVEs from NVD...")

for year in years:
cve_data = self.load_nvd_year(year)
Expand Down

0 comments on commit dd91ff6

Please sign in to comment.