diff options
Diffstat (limited to 'libbe/command/show.py')
-rw-r--r-- | libbe/command/show.py | 4 |
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) |