Skip to content

Commit

Permalink
Fix an issue with inject_scan_data on Component instances
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <tdruez@nexb.com>
  • Loading branch information
tdruez committed Jul 4, 2024
1 parent 7cb82a7 commit cde7104
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions product_portfolio/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,8 @@ def inject_scan_data(scancodeio, feature_grouped, dataspace_uuid):
for feature_label, productpackages in feature_grouped.items():
injected_productpackages = []
for productpackage in productpackages:
if not isinstance(productpackage, ProductPackage):
continue
scan = scans_by_uri.get(productpackage.package.download_url)
if scan:
scan["download_result_url"] = get_scan_results_as_file_url(scan)
Expand Down

0 comments on commit cde7104

Please sign in to comment.