summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-12-10 11:54:25 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-01-10 14:41:40 +0100
commitc86d9f33c9b54ff705b029f72c3b45de530155b1 (patch)
tree7d63423ce503ebcb42a59aa2da256b5fa0cb6728
parentd6c3d3f57afb82f39c400e98b878fb57e00c1139 (diff)
downloadfreeipa-c86d9f33c9b54ff705b029f72c3b45de530155b1.tar.gz
freeipa-c86d9f33c9b54ff705b029f72c3b45de530155b1.tar.xz
freeipa-c86d9f33c9b54ff705b029f72c3b45de530155b1.zip
Do not crash on bad LDAP data when formatting decode error message.
https://fedorahosted.org/freeipa/ticket/3488
-rw-r--r--ipapython/ipaldap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py
index cebf8695..47bddec3 100644
--- a/ipapython/ipaldap.py
+++ b/ipapython/ipaldap.py
@@ -422,7 +422,7 @@ class IPASimpleLDAPObject(object):
try:
return target_type(val)
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)
raise ValueError(msg)
elif isinstance(val, list):