diff options
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/baseldap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index b06b570cb..2eab69f3d 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -756,7 +756,7 @@ class LDAPObject(Object): def handle_duplicate_entry(self, *keys): try: pkey = keys[-1] - except KeyError: + except IndexError: pkey = '' raise errors.DuplicateEntry( message=self.already_exists_msg % { |