3
from grackle import client
5
class UserError(Exception):
6
"""An error caused by a user mistake."""
10
raise UserError("Wrong number of arguments supplied.")
11
grackle = client.GrackleClient('localhost', 8123)
12
grackle.put_message(args[0], args[1], sys.stdin)
15
if __name__ == '__main__':
20
sys.stderr.write(str(e) + '\n')