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