File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -628,7 +628,7 @@ def get_source_data(package: Package, packages: dict) -> list:
628
628
manifests = ""
629
629
if package .manifestFiles :
630
630
for manifest_data in package .manifestFiles :
631
- manifest_file = manifest_data [ "file" ]
631
+ manifest_file = manifest_data . get ( "file" ) # Safer dictionary access
632
632
if manifest_file :
633
633
manifests += f"{ manifest_file } ;"
634
634
manifests = manifests .rstrip (";" )
@@ -642,7 +642,7 @@ def get_source_data(package: Package, packages: dict) -> list:
642
642
top_purl = f"{ top_package .type } /{ top_package .name } @{ top_package .version } "
643
643
if top_package .manifestFiles :
644
644
for manifest_data in top_package .manifestFiles :
645
- manifest_file = manifest_data [ "file" ]
645
+ manifest_file = manifest_data . get ( "file" ) # Safer dictionary access
646
646
if manifest_file :
647
647
manifests += f"{ manifest_file } ;"
648
648
manifests = manifests .rstrip (";" )
You can’t perform that action at this time.
0 commit comments