projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a39c0cd
)
Clearer error message.
author
Aaron Bentley
<abentley@panoramicfeedback.com>
Mon, 21 Mar 2005 14:06:46 +0000
(14:06 +0000)
committer
Aaron Bentley
<abentley@panoramicfeedback.com>
Mon, 21 Mar 2005 14:06:46 +0000
(14:06 +0000)
becommands/set.py
patch
|
blob
|
history
diff --git
a/becommands/set.py
b/becommands/set.py
index 547e4a932b5653da3238c33190367ec982ba8e1a..875ca86140ae91c5c5936b8d7e1d62adf89965db 100644
(file)
--- 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()