Skip to content
Snippets Groups Projects
Commit df6826f4 authored by Шастун Екатерина (ИСП РАН)'s avatar Шастун Екатерина (ИСП РАН)
Browse files

fixed TypeError: 'NoneType' object is not iterable in sbom-checker.py

parent 079e90a2
No related branches found
No related tags found
No related merge requests found
......@@ -87,8 +87,10 @@ try:
refs_to_check = dict()
while stack:
component = stack.pop(0)
stack += component.get('components', [])
if args.check_vcs_leaf_only and component.get('components', []):
components_value = component.get('components', [])
if components_value:
stack += components_value
if args.check_vcs_leaf_only and components_value:
continue
refs = component.get('externalReferences', [])
if type(refs) == list:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment