aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
Diffstat (limited to 'becommands')
-rw-r--r--becommands/comment.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/becommands/comment.py b/becommands/comment.py
index 5f7128d..b211cf6 100644
--- a/becommands/comment.py
+++ b/becommands/comment.py
@@ -33,7 +33,8 @@ def execute(args):
True
>>> comment.in_reply_to is None
True
- >>> del os.environ["EDITOR"]
+ >>> if 'EDITOR' in os.environ:
+ ... del os.environ["EDITOR"]
>>> execute(["b"])
Traceback (most recent call last):
UserError: No comment supplied, and EDITOR not specified.