aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/inprogress.py
diff options
context:
space:
mode:
authorMarien Zwart <marienz@gentoo.org>2006-04-05 23:12:49 +0200
committerMarien Zwart <marienz@gentoo.org>2006-04-05 23:12:49 +0200
commite312d44cc6967e18b21955c6d9658d4c04259a92 (patch)
tree214072319b69c7963588a0eb5e2f5bd47c4278bf /becommands/inprogress.py
parent06c627a8532f5c4531483ffcbeba5ddf724d5685 (diff)
downloadbugseverywhere-e312d44cc6967e18b21955c6d9658d4c04259a92.tar.gz
Friendlier error message on "inprogress" or "open" with no arguments.
Diffstat (limited to 'becommands/inprogress.py')
-rw-r--r--becommands/inprogress.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/becommands/inprogress.py b/becommands/inprogress.py
index 9e396de..05da971 100644
--- a/becommands/inprogress.py
+++ b/becommands/inprogress.py
@@ -30,7 +30,8 @@ def execute(args):
>>> tests.clean_up()
"""
options, args = get_parser().parse_args(args)
- assert(len(args) == 1)
+ if len(args) !=1:
+ raise cmdutil.UserError("Please specify a bug id.")
bug = cmdutil.get_bug(args[0])
bug.status = "in-progress"
bug.save()