We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e60c631 commit e2f9465Copy full SHA for e2f9465
cyclonedx/model/component.py
@@ -1169,7 +1169,7 @@ def author(self) -> Optional[str]:
1169
1170
@author.setter
1171
def author(self, author: Optional[str]) -> None:
1172
- if author:
+ if author is not None:
1173
warn('`.component.author` is deprecated from CycloneDX v1.6 onwards. '
1174
'Please use `@.authors` or `@.manufacturer` instead.', DeprecationWarning)
1175
self._author = author
0 commit comments