diff options
Diffstat (limited to 'ipalib/plugins/permission.py')
-rw-r--r-- | ipalib/plugins/permission.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/permission.py b/ipalib/plugins/permission.py index 7d2a4dd15..1c636d8c0 100644 --- a/ipalib/plugins/permission.py +++ b/ipalib/plugins/permission.py @@ -1002,7 +1002,7 @@ class permission_add(baseldap.LDAPCreate): def post_callback(self, ldap, dn, entry, *keys, **options): try: self.obj.add_aci(entry) - except Exception, e: + except Exception as e: # Adding the ACI failed. # We want to be 100% sure the ACI is not there, so try to # remove it. (This is a no-op if the ACI was not added.) @@ -1185,7 +1185,7 @@ class permission_mod(baseldap.LDAPUpdate): context.permision_moving_aci = True try: context.old_aci_info = self.obj.remove_aci(old_entry) - except errors.NotFound, e: + except errors.NotFound as e: self.log.error('permission ACI not found: %s' % e) # To pass data to postcallback, we currently need to use the context |