From e64e25fcc108df888b0f5a1e6d8e74bf2e45c0ab Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Thu, 24 May 2018 10:17:51 -0400 Subject: [PATCH] flake8 errors in access.py due to an upgrade --- awx/main/access.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/main/access.py b/awx/main/access.py index 47534928bd..29664faa71 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -1622,7 +1622,7 @@ class JobLaunchConfigAccess(BaseAccess): if isinstance(sub_obj, Credential) and relationship == 'credentials': return self.user in sub_obj.use_role else: - raise NotImplemented('Only credentials can be attached to launch configurations.') + raise NotImplementedError('Only credentials can be attached to launch configurations.') def can_unattach(self, obj, sub_obj, relationship, data, skip_sub_obj_read_check=False): if isinstance(sub_obj, Credential) and relationship == 'credentials': @@ -1631,7 +1631,7 @@ class JobLaunchConfigAccess(BaseAccess): else: return self.user in sub_obj.read_role else: - raise NotImplemented('Only credentials can be attached to launch configurations.') + raise NotImplementedError('Only credentials can be attached to launch configurations.') class WorkflowJobTemplateNodeAccess(BaseAccess): @@ -1720,7 +1720,7 @@ class WorkflowJobTemplateNodeAccess(BaseAccess): elif relationship in ('success_nodes', 'failure_nodes', 'always_nodes'): return self.check_same_WFJT(obj, sub_obj) else: - raise NotImplemented('Relationship {} not understood for WFJT nodes.'.format(relationship)) + raise NotImplementedError('Relationship {} not understood for WFJT nodes.'.format(relationship)) def can_unattach(self, obj, sub_obj, relationship, data, skip_sub_obj_read_check=False): if not self.wfjt_admin(obj): @@ -1735,7 +1735,7 @@ class WorkflowJobTemplateNodeAccess(BaseAccess): elif relationship in ('success_nodes', 'failure_nodes', 'always_nodes'): return self.check_same_WFJT(obj, sub_obj) else: - raise NotImplemented('Relationship {} not understood for WFJT nodes.'.format(relationship)) + raise NotImplementedError('Relationship {} not understood for WFJT nodes.'.format(relationship)) class WorkflowJobNodeAccess(BaseAccess):