diff options
Diffstat (limited to 'becommands/open.py')
-rw-r--r-- | becommands/open.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |