Skip to content

Commit

Permalink
fix error type
Browse files Browse the repository at this point in the history
  • Loading branch information
omryMen committed Aug 30, 2023
1 parent 091e125 commit 696e8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkov/terraform/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def get_entity_context_and_evaluations(self, entity: dict[str, Any]) -> dict[str
logging.warning(f'Failed to find context for {".".join(entity_context_path)}')
return None
entity_context['definition_path'] = definition_path
except StopIteration:
except KeyError:
logging.error(f"Did not find context for key {full_file_path}")
return {}
return entity_context
Expand Down

0 comments on commit 696e8cf

Please sign in to comment.