def _results(self, connection, msgid):
try:<EOL><INDENT>kind, results = connection.result(msgid)<EOL>if kind != ldap.RES_SEARCH_RESULT:<EOL><INDENT>results = []<EOL><DEDENT><DEDENT>except ldap.LDAPError as e:<EOL><INDENT>results = []<EOL>logger.error(u"<STR_LIT>" % (msgid, pprint.pformat(e)))<EOL><DEDENT>return self._process_results(results)<EOL>
Returns the result of a previous asynchronous query.