From 629611bd7c65fdd980e22a2a9358f6b6c77bb030 Mon Sep 17 00:00:00 2001 From: yaaraverner Date: Tue, 3 Oct 2023 14:41:21 +0300 Subject: [PATCH] fix log --- checkov/common/bridgecrew/wrapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())}")