aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorAaron Bentley <aaron.bentley@utoronto.ca>2006-04-06 22:17:23 -0400
committerAaron Bentley <aaron.bentley@utoronto.ca>2006-04-06 22:17:23 -0400
commitd3fbae175f0cf639cfe0957e216cccf9a95e009b (patch)
tree3bbc6cd633181d543f47c24406d6b7b58c77350c /becommands
parent64794faedd01c04cbb56ccbbe299d515d4edeefe (diff)
parente312d44cc6967e18b21955c6d9658d4c04259a92 (diff)
downloadbugseverywhere-d3fbae175f0cf639cfe0957e216cccf9a95e009b.tar.gz
Merge remaining fixes from Zwart
Diffstat (limited to 'becommands')
-rw-r--r--becommands/close.py3
-rw-r--r--becommands/inprogress.py3
-rw-r--r--becommands/open.py3
3 files changed, 6 insertions, 3 deletions
diff --git a/becommands/close.py b/becommands/close.py
index 7e5ac1c..52ab735 100644
--- a/becommands/close.py
+++ b/becommands/close.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 = "closed"
bug.save()
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()
diff --git a/becommands/open.py b/becommands/open.py
index e51bf79..f7c23c1 100644
--- a/becommands/open.py
+++ b/becommands/open.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 = "open"
bug.save()