~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle-put-message

  • Committer: Curtis Hovey
  • Date: 2012-03-16 20:25:49 UTC
  • Revision ID: curtis.hovey@canonical.com-20120316202549-2dqmxc2f8d9dr7k9
Raise an error when the archive already exists.

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
 
5
6
class UserError(Exception):
6
7
    """An error caused by a user mistake."""
7
8
 
 
9
 
8
10
def main(*args):
9
11
    if len(args) != 2:
10
12
        raise UserError("Wrong number of arguments supplied.")