You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2016/02/07 01:39:49 UTC

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

Author: sebb
Date: Sun Feb  7 00:39:49 2016
New Revision: 1728901

URL: http://svn.apache.org/viewvc?rev=1728901&view=rev
Log:
Cope with missing health data

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=1728901&r1=1728900&r2=1728901&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Sun Feb  7 00:39:49 2016
@@ -217,7 +217,7 @@ def getProjectData(project):
             if xproject.lower() == x['name'].lower():
                 x['chair'] = c[xproject]
         z = {}
-        h = readJson(RAOHOME+"data/health.json")
+        h = readJson(RAOHOME+"data/health.json", [])
         z = {}
         for entry in h:
             if entry['group'] == project:
@@ -238,7 +238,7 @@ def getProjectData(project):
             if 'name' in x and xproject == x['name']:
                 x['chair'] = c[xproject]
         z = {}
-        h = readJson(RAOHOME+"data/health.json")
+        h = readJson(RAOHOME+"data/health.json", [])
         z = {}
         for entry in h:
             if entry['group'] == project: