Skip to content

Commit 7c94a5c

Browse files
committed
raise organizations excpetion
1 parent 62a4791 commit 7c94a5c

File tree

1 file changed

+2
-2
lines changed
  • src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python

1 file changed

+2
-2
lines changed

src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/organizations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,9 @@ def create_ou(self, parent_ou_id, name):
501501
ParentId=parent_ou_id,
502502
Name=name
503503
)
504-
except ClientError as error:
504+
except:
505505
LOGGER.error(f'Failed to create OU called {name}, with parent {parent_ou_id}')
506-
raise error
506+
raise OrganizationsException()
507507
return ou
508508

509509

0 commit comments

Comments
 (0)