Skip to content

Commit e2f9465

Browse files
authored
Update cyclonedx/model/component.py
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent e60c631 commit e2f9465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyclonedx/model/component.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ def author(self) -> Optional[str]:
11691169

11701170
@author.setter
11711171
def author(self, author: Optional[str]) -> None:
1172-
if author:
1172+
if author is not None:
11731173
warn('`.component.author` is deprecated from CycloneDX v1.6 onwards. '
11741174
'Please use `@.authors` or `@.manufacturer` instead.', DeprecationWarning)
11751175
self._author = author

0 commit comments

Comments
 (0)