~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle-put-message

  • Committer: Aaron Bentley
  • Date: 2012-01-13 13:52:09 UTC
  • Revision ID: aaron@canonical.com-20120113135209-3s1l4hu25wjyq6jj
Fix grackle-put-message.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
import sys
3
3
from grackle import client
4
4
 
5
 
 
6
5
class UserError(Exception):
7
6
    """An error caused by a user mistake."""
8
7
 
9
 
 
10
8
def main(*args):
11
9
    if len(args) != 2:
12
10
        raise UserError("Wrong number of arguments supplied.")