community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1757048 - /comdev/projects.apache.org/scripts/cronjobs/parseprojects.py
Date Sun, 21 Aug 2016 11:38:34 GMT
Author: sebb
Date: Sun Aug 21 11:38:34 2016
New Revision: 1757048

URL: http://svn.apache.org/viewvc?rev=1757048&view=rev
Log:
Log when PMC rdf cannot be read

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=1757048&r1=1757047&r2=1757048&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parseprojects.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parseprojects.py Sun Aug 21 11:38:34 2016
@@ -110,7 +110,11 @@ def name2fileName(s, pmc):
 # Process external PMC descriptor file to extract the PMC name
 def getPMC(url):
     print("Parsing PMC descriptor file %s" % url)
-    rdf = urllib.request.urlopen(url, timeout=URL_TIMEOUT).read()
+    try:
+        rdf = urllib.request.urlopen(url, timeout=URL_TIMEOUT).read()
+    except:
+        printMail("WARN: could not read PMC descriptor '%s' " % url)
+        return 'Unknown'
     md = minidom.parseString(rdf)
     pmc = (md.getElementsByTagName('asfext:pmc') or md.getElementsByTagName('asfext:PMC'))[0]
     t = pmc.tagName.lower()



Mime
View raw message