baseldap: Fix possible crash in LDAPObject.handle_duplicate_entry

This commit is contained in:
Jan Cholasta committed 2015-05-15 14:28:52 +00:00
1 parent 3c86b0ef3e
commit dc668b1b6a
1 file changed
+1 -1
+1 -1
View File
@@ -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 % {