cant use get on none type
@@ -11,7 +11,10 @@ class DynamoDBTablesEncrypted(BaseResourceCheck):
super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
def scan_resource_conf(self, conf):
- sse_config = conf.get('Properties').get('SSESpecification')
+ properties = conf.get('Properties')
+ if properties is not None:
+ sse_config = properties.get('SSESpecification')
+ if sse_config is not None:
sse_enabled = sse_config.get('SSEEnabled')
sse_key = sse_config.get('KMSMasterKeyId')
if sse_enabled and sse_key is not None:
