community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1728901 - /comdev/reporter.apache.org/trunk/site/getjson.py
Date Sun, 07 Feb 2016 00:39:49 GMT
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:



Mime
View raw message