diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-21 14:06:46 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-21 14:06:46 +0000 |
commit | 052bdf5a83c127f79b8518c41f2f8728f7125362 (patch) | |
tree | abbb2433e60f501306b43c6004861c6f2a0edb51 /becommands | |
parent | a39c0cd4ad07ff0ff371bcce7c8db33ca789efd0 (diff) | |
download | bugseverywhere-052bdf5a83c127f79b8518c41f2f8728f7125362.tar.gz |
Clearer error message.
Diffstat (limited to 'becommands')
-rw-r--r-- | becommands/set.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/becommands/set.py b/becommands/set.py index 547e4a9..875ca86 100644 --- a/becommands/set.py +++ b/becommands/set.py @@ -1,7 +1,8 @@ """Change tree settings""" from libbe import cmdutil def execute(args): - assert len(args) in (0, 1, 2) + if len(args) > 2: + raise cmdutil.UserError("Too many arguments.") tree = cmdutil.bug_tree() if len(args) == 0: keys = tree.settings.keys() |