pylint: disable used-before-assignment
Related: https://pagure.io/freeipa/issue/9278 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Stanislav Levin <slev@altlinux.org>
This commit is contained in:
1 parent
a9c1c81a46
commit
2011d1a36a
9 files changed
+12
-5
No files matched your search
@@ -1101,7 +1101,7 @@ class LDAPClient:
|
||||
except ldap.TYPE_OR_VALUE_EXISTS:
|
||||
# attribute type or attribute value already exists, usually only
|
||||
# occurs, when two machines try to write at the same time.
|
||||
raise errors.DuplicateEntry(message=desc)
|
||||
raise errors.DuplicateEntry(message=desc) # pylint: disable=E0601
|
||||
except ldap.CONSTRAINT_VIOLATION:
|
||||
# This error gets thrown by the uniqueness plugin
|
||||
_msg = 'Another entry with the same attribute value already exists'
|
||||
|
||||
Reference in new issue
Block a user