From c86d9f33c9b54ff705b029f72c3b45de530155b1 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 10 Dec 2013 11:54:25 +0100 Subject: Do not crash on bad LDAP data when formatting decode error message. https://fedorahosted.org/freeipa/ticket/3488 --- ipapython/ipaldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit