[ldap] Use correct API for logging message
authorJérôme Roy <jerome.roy@logilab.fr>
Wed, 10 Apr 2013 16:46:18 +0200
changeset 8888 738f97bc3e19
parent 8885 b3409c1dc012
child 8889 be91151107f6
[ldap] Use correct API for logging message The good practice cat prefer logging to do the substitution himself.
sobjects/ldapparser.py
--- a/sobjects/ldapparser.py	Wed Apr 10 16:22:48 2013 +0200
+++ b/sobjects/ldapparser.py	Wed Apr 10 16:46:18 2013 +0200
@@ -176,7 +176,7 @@
             return self._cw.execute('Any X WHERE X is CWGroup, X name %(name)s',
                                     {'name': name}).get_entity(0, 0)
         except IndexError:
-            self.error('group %r referenced by source configuration %r does not exist'
-                       % (name, self.source.uri))
+            self.error('group %r referenced by source configuration %r does not exist',
+                       name, self.source.uri)
             return None