Skip to content

Commit e60c631

Browse files
authored
Update cyclonedx/model/bom.py
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent f365313 commit e60c631

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cyclonedx/model/bom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def manufacture(self, manufacture: Optional[OrganizationalEntity]) -> None:
208208
@todo Based on https://github.com/CycloneDX/specification/issues/346,
209209
we should set this data on `.component.manufacturer`.
210210
"""
211-
if manufacture:
211+
if manufacture is not None:
212212
warn(
213213
'`bom.metadata.manufacture` is deprecated from CycloneDX v1.6 onwards. '
214214
'Please use `bom.metadata.component.manufacturer` instead.',

0 commit comments

Comments
 (0)