fix(trustedadvisor): handle AccessDenied exception (#4158)

This commit is contained in:
Sergio Garcia
2024-06-03 15:15:00 -04:00
committed by GitHub
parent f895e4df6a
commit 0c01cf28c4
@@ -25,7 +25,7 @@ class TrustedAdvisor(AWSService):
self.client = self.session.client(self.service, region_name=support_region)
self.client.region = support_region
self.__describe_services__()
if self.premium_support.enabled:
if getattr(self.premium_support, "enabled", False):
self.__describe_trusted_advisor_checks__()
self.__describe_trusted_advisor_check_result__()