mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Do not crash on bad LDAP data when formatting decode error message.
https://fedorahosted.org/freeipa/ticket/3488
This commit is contained in:
parent
d6c3d3f57a
commit
c86d9f33c9
@ -422,7 +422,7 @@ class IPASimpleLDAPObject(object):
|
|||||||
try:
|
try:
|
||||||
return target_type(val)
|
return target_type(val)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
msg = 'unable to convert the attribute "%s" value "%s" to type %s' % (attr, val, target_type)
|
msg = 'unable to convert the attribute %r value %r to type %s' % (attr, val, target_type)
|
||||||
self.log.error(msg)
|
self.log.error(msg)
|
||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
elif isinstance(val, list):
|
elif isinstance(val, list):
|
||||||
|
Loading…
Reference in New Issue
Block a user