Skip to content

fix: broken quiet mode in main branch (#1587) #1648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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