organizations support: add exception handling for describe_organizations
This commit is contained in:
parent
4356e951e1
commit
b8be517be0
@ -157,6 +157,11 @@ class OrganizationsBackend(BaseBackend):
|
|||||||
return self.org.describe()
|
return self.org.describe()
|
||||||
|
|
||||||
def describe_organization(self):
|
def describe_organization(self):
|
||||||
|
if not self.org:
|
||||||
|
raise RESTError(
|
||||||
|
'AWSOrganizationsNotInUseException',
|
||||||
|
"Your account is not a member of an organization."
|
||||||
|
)
|
||||||
return self.org.describe()
|
return self.org.describe()
|
||||||
|
|
||||||
def list_roots(self):
|
def list_roots(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user