You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2015/10/08 15:18:46 UTC

svn commit: r1707529 - /comdev/reporter.apache.org/trunk/site/getjson.py

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 = {