Skip to content

Commit bdfad45

Browse files
Add warnings none
1 parent 9e8f7a0 commit bdfad45

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

etc/sbom/generate_sbom.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,8 +831,12 @@ def main() -> None:
831831
# Access the collected warnings
832832
print_banner('CONSOLIDATED WARNINGS')
833833
warnings = ["The following warnings were output when generating the SBOM:\n"]
834-
for record in warning_handler.warnings:
835-
warnings.append(" - " + record.getMessage())
834+
835+
if len(record):
836+
for record in warning_handler.warnings:
837+
warnings.append(" - " + record.getMessage())
838+
else:
839+
warnings.append(" - None")
836840

837841
print('\n'.join(warnings))
838842

0 commit comments

Comments
 (0)