incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1680807 - /incubator/public/trunk/clutch.py
Date Thu, 21 May 2015 10:24:55 GMT
Author: sebb
Date: Thu May 21 10:24:54 2015
New Revision: 1680807

URL: http://svn.apache.org/r1680807
Log:
Report which file causes an error

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1680807&r1=1680806&r2=1680807&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Thu May 21 10:24:54 2015
@@ -379,7 +379,11 @@ for k in sorted(projectNames, key=str.lo
   # parse their project status file to extract specific information
   statusFile = SITE_CONTENT_DIR + "projects/{0}.xml".format(projects[k]['statusFileName'])
   if os.path.exists(statusFile):
-    dom = xml.dom.minidom.parse(statusFile)
+    try:
+        dom = xml.dom.minidom.parse(statusFile)
+    except (Exception) as e:
+        print("Exception processing " + statusFile + " : " + str(e))
+        raise
     # get the project info hints
     if optionVerbose:
       print("DEBUG: Gather hints from project Status page");



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message