aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/close.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-06-26 09:55:49 -0400
committerW. Trevor King <wking@drexel.edu>2010-06-26 09:55:49 -0400
commit20a3cd53703b058e558bedade4c2eb8a1d3e1c8f (patch)
treed7580ec54a4f2ad12cfb20ffb45481fe42313c69 /libbe/command/close.py
parent9a6a3b7e8a81126216eda582020a695f2a8cc694 (diff)
downloadbugseverywhere-20a3cd53703b058e558bedade4c2eb8a1d3e1c8f.tar.gz
UsageError -> UserError in a few libbe.command.* submods.
This catches them up with the removal of UsageError in commit bf3d434b244c57556bec979acbc658c30eb58221 Author: W. Trevor King <wking@drexel.edu> 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 ;).
Diffstat (limited to 'libbe/command/close.py')
-rw-r--r--libbe/command/close.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/command/close.py b/libbe/command/close.py
index 7cb51b1..f470950 100644
--- a/libbe/command/close.py
+++ b/libbe/command/close.py
@@ -41,9 +41,9 @@ def execute(args, manipulate_encodings=True):
cmdutil.default_complete(options, args, parser,
bugid_args={0: lambda bug : bug.active==True})
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])