in src/org_setup/resources/organizations.py [0:0]
def describe_organization(self) -> Dict[str, Any]:
"""
Describe the organization the account belongs to
"""
try:
response = self.client.describe_organization()
except self.client.exceptions.AWSOrganizationsNotInUseException:
raise OrganizationNotFoundError()
except botocore.exceptions.ClientError:
logger.exception(f"[{self.region}] Unable to describe organization")
raise
return response["Organization"]