diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-12-10 11:54:25 +0100 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-01-10 14:41:40 +0100 |
commit | c86d9f33c9b54ff705b029f72c3b45de530155b1 (patch) | |
tree | 7d63423ce503ebcb42a59aa2da256b5fa0cb6728 /ipapython | |
parent | d6c3d3f57afb82f39c400e98b878fb57e00c1139 (diff) | |
download | freeipa-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
Diffstat (limited to 'ipapython')
-rw-r--r-- | ipapython/ipaldap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index cebf86957..47bddec39 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): |