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 692dad6 commit 13f7550
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions opencve/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,16 @@ def vendors_dict_to_flat(vendors):
Takes a list of nested vendors and products and flat them.
"""
data = []
for vendor, products in vendors.items():
data.append(vendor)
try:

for vendor, products in vendors.items():
data.append(vendor)
for product in products:
data.append(f"{vendor}{PRODUCT_SEPARATOR}{product}")
except Exception as e:
info(e)
data = []

return data


Expand Down

0 comments on commit 13f7550

Please sign in to comment.