community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1790395 - /comdev/projects.apache.org/scripts/cronjobs/parseprojects.py
Date Thu, 06 Apr 2017 12:38:07 GMT
Author: sebb
Date: Thu Apr  6 12:38:07 2017
New Revision: 1790395

URL: http://svn.apache.org/viewvc?rev=1790395&view=rev
Log:
Allow for missing body value

Modified:
    comdev/projects.apache.org/scripts/cronjobs/parseprojects.py

Modified: comdev/projects.apache.org/scripts/cronjobs/parseprojects.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parseprojects.py?rev=1790395&r1=1790394&r2=1790395&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parseprojects.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parseprojects.py Thu Apr  6 12:38:07 2017
@@ -56,6 +56,8 @@ siteMap = {
 # Print to log and send an email (intended for WARN messages)
 def printMail(msg, file=sys.stdout, body=''):
     print(msg, file=file)
+    if body == None: # sendmail barfs if body is missing
+        body = ''
     try:
         sendmail.sendMail(msg, body=body)
     except ConnectionRefusedError:



Mime
View raw message