Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
fix: CVE for descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jjeff07 committed Jan 4, 2022
1 parent 4353106 commit 7302a8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ipfabric/tools/nist.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ def check_cve(self, vendor: str, family: str, version: str):
res = self.get('', params=params)
res.raise_for_status()
data = res.json()
for c in data['result']['CVE_Items']:
if len(c['cve']['description']['description_data']) > 1:
print()

cves = CVEs(
total_results=data['totalResults'],
cves=[CVE(cve_id=i['cve']['CVE_data_meta']['ID'],
Expand Down

0 comments on commit 7302a8f

Please sign in to comment.