We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c03f6b2 commit de1b933Copy full SHA for de1b933
1 file changed
riemann_client/client.py
@@ -66,6 +66,8 @@ def send_query(self, query):
66
return self.transport.send(message)
67
68
def query(self, query):
69
+ if isinstance(self.transport, riemann_client.transport.UDPTransport):
70
+ raise Exception('Cannot query the Riemann server over UDP')
71
response = self.send_query(query)
72
return [self.create_dict(e) for e in response.events]
73
0 commit comments