Skip to content

Commit

Permalink
fix: improve parameter unsetting
Browse files Browse the repository at this point in the history
  • Loading branch information
terriko committed Feb 9, 2022
1 parent 397f849 commit df4b1a4
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 @@ -169,7 +169,7 @@ async def load_nvd_request(self, start_index):
# If the API key provided is invalid, delete from params
# list and try the request again.
self.logger.error("unset api key, retrying")
self.params["apiKey"] = ""
del param_dict["apiKey"]
self.failed_count += 1
time.sleep(1)

Expand Down

0 comments on commit df4b1a4

Please sign in to comment.