community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1805874 - /comdev/projects.apache.org/scripts/cronjobs/parseprojects.py
Date Wed, 23 Aug 2017 09:55:48 GMT
Author: sebb
Date: Wed Aug 23 09:55:48 2017
New Revision: 1805874

URL: http://svn.apache.org/viewvc?rev=1805874&view=rev
Log:
COMDEV-222 projects.a.o does not handle SVN problems well
OK to use Mail for non-network errors

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=1805874&r1=1805873&r2=1805874&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parseprojects.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parseprojects.py Wed Aug 23 09:55:48 2017
@@ -258,8 +258,7 @@ for s in itemlist :
                 print("Error when processing doap file %s:" % url, file=sys.stderr)
                 unreportedError = True
         else:
-            print("Error when processing doap file %s:" % url, file=sys.stderr)
-            unreportedError = True
+            printMail("Error when processing doap file %s:" % url, file=sys.stderr, body=str(err))
         print("-"*60, file=sys.stderr)
         traceback.print_exc()
         if isinstance(err, OSError): # OSError is parent of HTTPError/URLError 
@@ -296,7 +295,7 @@ if len(failures) > 0:
         f.write("</doapFiles>\n")
         f.close()
         if unreportedError:
-            printMail("ERROR: one or more errors detected - see the log file")    
+            printMail("ERROR: one or more errors detected - see the parseprojects.py log
file")    
 else:
     if os.path.exists("parseprojects-failures.xml"):
         print("No failures detected, removing previous failure data")



Mime
View raw message