def query(self, query):
if isinstance(self.transport, riemann_client.transport.UDPTransport):<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>response = self.send_query(query)<EOL>return [self.create_dict(e) for e in response.events]<EOL>
Sends a query to the Riemann server

        >>> client.query('true')

        :returns: A list of event dictionaries taken from the response
        :raises Exception: if used with a :py:class:`.UDPTransport`