From 4356e951e10795fcb9b73ac6b67540fbfeda2001 Mon Sep 17 00:00:00 2001 From: Ashley Gould Date: Fri, 20 Jul 2018 14:07:04 -0700 Subject: [PATCH] [issue #1720] Add support for AWS Organizations fix travis build error --- moto/organizations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/organizations/models.py b/moto/organizations/models.py index 91896f537..c02b1a492 100644 --- a/moto/organizations/models.py +++ b/moto/organizations/models.py @@ -181,7 +181,7 @@ class OrganizationsBackend(BaseBackend): def validate_parent_id(self, parent_id): try: self.get_organizational_unit_by_id(parent_id) - except RESTError as e: + except RESTError: raise RESTError( 'ParentNotFoundException', "You specified parent that doesn't exist."