diff options
Diffstat (limited to 'becommands')
-rw-r--r-- | becommands/comment.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/becommands/comment.py b/becommands/comment.py index 0207a6c..6a7998c 100644 --- a/becommands/comment.py +++ b/becommands/comment.py @@ -44,7 +44,11 @@ def execute(args): raise cmdutil.UsageError() bug = cmdutil.get_bug(args[0]) if len(args) == 1: - body = utility.editor_string() + try: + body = utility.editor_string() + except utility.CantFindEditor: + raise cmdutil.UserError( + "No comment supplied, and EDITOR not specified.") if body is None: raise cmdutil.UserError("No comment entered.") else: |