aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/comment.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-05-17 13:29:15 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-05-17 13:29:15 +0000
commit757eb3a2249ca2aa7b0cd627c9ea884a2d9b1eac (patch)
treeb857222f156ea5aea857e24775750013b65064f9 /becommands/comment.py
parent5c39f0d8175f2ef57422c76ff6fcd20ae7dff7cb (diff)
downloadbugseverywhere-757eb3a2249ca2aa7b0cd627c9ea884a2d9b1eac.tar.gz
Fixed bug handing missing $EDITOR
Diffstat (limited to 'becommands/comment.py')
-rw-r--r--becommands/comment.py6
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: