mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 16:31:08 -06:00
baseldap: Fix possible crash in LDAPObject.handle_duplicate_entry
This commit is contained in:
parent
3c86b0ef3e
commit
dc668b1b6a
@ -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 % {
|
||||
|
Loading…
Reference in New Issue
Block a user