# HG changeset patch # User Jérôme Roy # Date 1365605178 -7200 # Node ID 738f97bc3e1983003cf0b72de204828be1f57a4c # Parent b3409c1dc01232681ecda238cc81bfc234644a21 [ldap] Use correct API for logging message The good practice cat prefer logging to do the substitution himself. diff -r b3409c1dc012 -r 738f97bc3e19 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