community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1723310 - /comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py
Date Wed, 06 Jan 2016 13:07:56 GMT
Author: sebb
Date: Wed Jan  6 13:07:56 2016
New Revision: 1723310

URL: http://svn.apache.org/viewvc?rev=1723310&view=rev
Log:
Don't proceed if PMC id is invalid

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

Modified: comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py?rev=1723310&r1=1723309&r2=1723310&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py Wed Jan  6 13:07:56
2016
@@ -103,6 +103,7 @@ for loc in xmldoc.getElementsByTagName('
         committeeId = rdfdata.attrib['{http://www.w3.org/1999/02/22-rdf-syntax-ns#}about']
         if re.match("https?:", committeeId):
             print("ERROR: unexpected rdf:about value '%s' in '%s'" % (committeeId, url),
file=sys.stderr)
+            continue # No point proceeding further
         pmcDataUrls[committeeId] = url
 
         # transform PMC data RDF to json



Mime
View raw message