community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1707529 - /comdev/reporter.apache.org/trunk/site/getjson.py
Date Thu, 08 Oct 2015 13:18:46 GMT
Author: humbedooh
Date: Thu Oct  8 13:18:46 2015
New Revision: 1707529

URL: http://svn.apache.org/viewvc?rev=1707529&view=rev
Log:
check that pmcdates has the group we want, so as to avoid key error

Modified:
    comdev/reporter.apache.org/trunk/site/getjson.py

Modified: comdev/reporter.apache.org/trunk/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson.py?rev=1707529&r1=1707528&r2=1707529&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Thu Oct  8 13:18:46 2015
@@ -340,7 +340,8 @@ if m:
                 for member in cchanges[pmc]:
                     if cchanges[pmc][member][1] > 0:
                         cdata[group]['committer'][member] = cchanges[pmc][member]
-        dates[group] = pmcdates[group] # only send the groups we want
+        if group in pmcdates: # Make sure we have this PMC in the JSON, so as to not bork
+            dates[group] = pmcdates[group] # only send the groups we want
     if not isMember(uid):
         allpmcs = []
     output = {



Mime
View raw message