Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion surfactant/cmd/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ def sbom(

# define the new_sbom variable type
new_sbom: SBOM
if not input_sbom:
# Click has Sentinel.UNSET type that doesn't have READ attribute, which may appear when running regression test script
if not input_sbom or not hasattr(input_sbom, "read"):
new_sbom = SBOM()
else:
new_sbom = input_reader.read_sbom(input_sbom)
Expand Down
Loading