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 9e8f7a0 commit bdfad45Copy full SHA for bdfad45
etc/sbom/generate_sbom.py
@@ -831,8 +831,12 @@ def main() -> None:
831
# Access the collected warnings
832
print_banner('CONSOLIDATED WARNINGS')
833
warnings = ["The following warnings were output when generating the SBOM:\n"]
834
- for record in warning_handler.warnings:
835
- warnings.append(" - " + record.getMessage())
+
+ if len(record):
836
+ for record in warning_handler.warnings:
837
+ warnings.append(" - " + record.getMessage())
838
+ else:
839
+ warnings.append(" - None")
840
841
print('\n'.join(warnings))
842
0 commit comments