From 20a3cd53703b058e558bedade4c2eb8a1d3e1c8f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 26 Jun 2010 09:55:49 -0400 Subject: UsageError -> UserError in a few libbe.command.* submods. This catches them up with the removal of UsageError in commit bf3d434b244c57556bec979acbc658c30eb58221 Author: W. Trevor King Date: Sat Dec 12 00:31:55 2009 -0500 Added libbe.command.base (with Command class) and moved list command to new format. I guess I don't make many mistakes entering those commands ;). --- libbe/command/open.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbe/command/open.py') diff --git a/libbe/command/open.py b/libbe/command/open.py index b409965..1551962 100644 --- a/libbe/command/open.py +++ b/libbe/command/open.py @@ -40,9 +40,9 @@ def execute(args, manipulate_encodings=True): cmdutil.default_complete(options, args, parser, bugid_args={0: lambda bug : bug.active==False}) if len(args) == 0: - raise cmdutil.UsageError, "Please specify a bug id." + raise cmdutil.UserError, "Please specify a bug id." if len(args) > 1: - raise cmdutil.UsageError, "Too many arguments." + raise cmdutil.UserError, "Too many arguments." bd = bugdir.BugDir(from_disk=True, manipulate_encodings=manipulate_encodings) bug = cmdutil.bug_from_shortname(bd, args[0]) -- cgit