community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1828800 - /comdev/projects.apache.org/scripts/cronjobs/parseprojects.py
Date Tue, 10 Apr 2018 09:48:16 GMT
Author: sebb
Date: Tue Apr 10 09:48:16 2018
New Revision: 1828800

URL: http://svn.apache.org/viewvc?rev=1828800&view=rev
Log:
Default body to subject

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=1828800&r1=1828799&r2=1828800&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parseprojects.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parseprojects.py Tue Apr 10 09:48:16 2018
@@ -61,6 +61,8 @@ def printMail(msg, file=sys.stdout, body
     print(msg, file=file)
     if body == None: # sendmail barfs if body is missing
         body = ''
+    if body == '':
+        body=msg
     try:
         sendmail.sendMail(msg, body=body)
     except ConnectionRefusedError:



Mime
View raw message