~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle-put-message

  • Committer: Curtis Hovey
  • Date: 2012-01-30 18:28:17 UTC
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: curtis.hovey@canonical.com-20120130182817-t72j09m11g8fspdq
Hush lint.

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.")