Skip to content

Commit

Permalink
fix: fix apiKey check syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
terriko committed Mar 9, 2022
1 parent 0529bc1 commit 89df0f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cve_bin_tool/nvd_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def get_nvd_params(
self.logger.debug("Fetching metadata from NVD...")
cve_count = await self.nvd_count_metadata(self.session)

if self.params("apiKey", None):
if "apiKey" in self.params:
await self.validate_nvd_api()

if time_of_last_update:
Expand Down

0 comments on commit 89df0f0

Please sign in to comment.