iam_permissions_guardrails/constructs/service_control_policies/attachment_lambda/app.py [95:100]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        try:
            organizations_client.detach_policy(PolicyId=policy_id, TargetId=account)
        except organizations_client.exceptions.PolicyNotAttachedException:
            logger.info(f"Already detached policy_id={policy_id} to {account}")
            pass
        except:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



iam_permissions_guardrails/constructs/service_control_policies/attachment_lambda/app.py [155:160]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        try:
            organizations_client.detach_policy(PolicyId=policy_id, TargetId=account)
        except organizations_client.exceptions.PolicyNotAttachedException:
            logger.info(f"Already detached policy_id={policy_id} to {account}")
            pass
        except:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



