raise error instead of sending email to no one
[edward.git] / edward
diff --git a/edward b/edward
index ba4b947892f49c15bafdaf43bc02968452c20526..4f782c6c1a93b58c08a942ce231f745b70c4682d 100755 (executable)
--- a/edward
+++ b/edward
@@ -1368,6 +1368,9 @@ def send_reply(email_txt, reply_to, reply_from):
         Email is sent
     """
 
+    if reply_to == None:
+        error("*** ERROR: No one to send email to.")
+        exit(1)
 
     s = smtplib.SMTP('localhost')
     s.sendmail(reply_from, reply_to, email_txt)