Skip to content

Commit

Permalink
testing modification of CPE
Browse files Browse the repository at this point in the history
  • Loading branch information
sudesh0sudesh authored and sudesh0sudesh committed Apr 10, 2024
1 parent 12ff3c4 commit 692dad6
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions opencve/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,15 @@ def vendors_conf_to_dict(conf):

# Transform it into nested dictionary
cpes = {}
for vendor, product in cpes_t:
if vendor not in cpes:
cpes[vendor] = []
cpes[vendor].append(product)
try:
for vendor, product in cpes_t:
if vendor not in cpes:
cpes[vendor] = []
cpes[vendor].append(product)
except Exception as e:
info(e)
cpes = {}


return cpes

Expand Down

0 comments on commit 692dad6

Please sign in to comment.