Skip to content

Commit

Permalink
fix: handle unknown supplier type
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Dec 11, 2023
1 parent 3165dbc commit 2c55562
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib4sbom/data/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def _validate_supplier_type(self, type):
return supplier_type.capitalize()
if supplier_type == "author":
return "Person"
if supplier_type == "unknown":
return "UNKNOWN"
return "Organization"

def set_supplier(self, type, name):
Expand Down

0 comments on commit 2c55562

Please sign in to comment.