organizations support: add exception handling for describe_organizations
This commit is contained in:
parent
4356e951e1
commit
b8be517be0
1 changed files with 5 additions and 0 deletions
|
|
@ -157,6 +157,11 @@ class OrganizationsBackend(BaseBackend):
|
|||
return self.org.describe()
|
||||
|
||||
def describe_organization(self):
|
||||
if not self.org:
|
||||
raise RESTError(
|
||||
'AWSOrganizationsNotInUseException',
|
||||
"Your account is not a member of an organization."
|
||||
)
|
||||
return self.org.describe()
|
||||
|
||||
def list_roots(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue