[Python-checkins] r62361 - tracker/instances/setuptools/detectors/sendmail.py

martin.v.loewis python-checkins at python.org
Thu Apr 17 10:07:26 CEST 2008


Author: martin.v.loewis
Date: Thu Apr 17 10:07:25 2008
New Revision: 62361

Log:
Only send email if there are configured recipients.


Modified:
   tracker/instances/setuptools/detectors/sendmail.py

Modified: tracker/instances/setuptools/detectors/sendmail.py
==============================================================================
--- tracker/instances/setuptools/detectors/sendmail.py	(original)
+++ tracker/instances/setuptools/detectors/sendmail.py	Thu Apr 17 10:07:25 2008
@@ -100,7 +100,8 @@
 
     for msgid in [msgid for msgid in new_messages if not is_spam(db, msgid)]:
         try:
-            cl.send_message(nodeid, msgid, changenote, sendto,
+            if sendto:
+                cl.send_message(nodeid, msgid, changenote, sendto,
                             authid=authid)
             nosymessage(db, nodeid, msgid, oldvalues, changenote)
         except roundupdb.MessageSendError, message:


More information about the Python-checkins mailing list