From 11a8530eceae01f0ffda07b8b6791f6f6df3ac41 Mon Sep 17 00:00:00 2001 From: Sebastian Rojo Suarez Date: Tue, 12 Feb 2019 11:55:27 -0500 Subject: [PATCH] fix "not all arguments converted during string formatting" When Result is a tuple --- Lib/ldap/ldapobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ldap/ldapobject.py b/Lib/ldap/ldapobject.py index e4e6841a..85b2b263 100644 --- a/Lib/ldap/ldapobject.py +++ b/Lib/ldap/ldapobject.py @@ -526,7 +526,7 @@ def compare_ext_s(self,dn,attr,value,serverctrls=None,clientctrls=None): except ldap.COMPARE_FALSE: return False raise ldap.PROTOCOL_ERROR( - 'Compare operation returned wrong result: %r' % (ldap_res) + 'Compare operation returned wrong result: %r' % repr(ldap_res) ) def compare(self,dn,attr,value):