diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-05-17 13:29:15 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-05-17 13:29:15 +0000 |
commit | 757eb3a2249ca2aa7b0cd627c9ea884a2d9b1eac (patch) | |
tree | b857222f156ea5aea857e24775750013b65064f9 /becommands | |
parent | 5c39f0d8175f2ef57422c76ff6fcd20ae7dff7cb (diff) | |
download | bugseverywhere-757eb3a2249ca2aa7b0cd627c9ea884a2d9b1eac.tar.gz |
Fixed bug handing missing $EDITOR
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: |