aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/show.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/show.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/show.py')
-rw-r--r--libbe/command/show.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/command/show.py b/libbe/command/show.py
index b267381..c6ad37d 100644
--- a/libbe/command/show.py
+++ b/libbe/command/show.py
@@ -101,12 +101,12 @@ class Show (libbe.command.Command):
bugdir = self._get_bugdir()
if params['only-raw-body'] == True:
if len(params['id']) != 1:
- raise libbe.command.UsageError(
+ raise libbe.command.UserError(
'only one ID accepted with --only-raw-body')
bug,comment = libbe.command.util.bug_comment_from_user_id(
bugdir, params['id'][0])
if comment == bug.comment_root:
- raise libbe.command.UsageError(
+ raise libbe.command.UserError(
"--only-raw-body requires a comment ID, not '%s'"
% params['id'][0])
sys.__stdout__.write(comment.body)