diff --git a/checkov/common/bridgecrew/wrapper.py b/checkov/common/bridgecrew/wrapper.py index 0e630732e18..e8595388b96 100644 --- a/checkov/common/bridgecrew/wrapper.py +++ b/checkov/common/bridgecrew/wrapper.py @@ -215,4 +215,5 @@ def _upload_resource_subgraph_map(check_type: str, resource_subgraph_map: dict[s return_when=futures.FIRST_EXCEPTION, timeout=timeout ) - logging.info(f"Done persisting resource_subgraph_maps for frameworks - {', '.join(resource_subgraph_maps.keys())}") + if resource_subgraph_maps: + logging.info(f"Done persisting resource_subgraph_maps for frameworks - {', '.join(resource_subgraph_maps.keys())}")