aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/set.py
diff options
context:
space:
mode:
Diffstat (limited to 'becommands/set.py')
-rw-r--r--becommands/set.py3
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()