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



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



