community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From he...@apache.org
Subject svn commit: r1822212 - /comdev/reporter.apache.org/trunk/site/getjson-hppdev.py
Date Thu, 25 Jan 2018 18:03:31 GMT
Author: henkp
Date: Thu Jan 25 18:03:31 2018
New Revision: 1822212

URL: http://svn.apache.org/viewvc?rev=1822212&view=rev
Log:
get checker json on the fly ; use cache as fallback

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

Modified: comdev/reporter.apache.org/trunk/site/getjson-hppdev.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson-hppdev.py?rev=1822212&r1=1822211&r2=1822212&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson-hppdev.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson-hppdev.py Thu Jan 25 18:03:31 2018
@@ -277,7 +277,8 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
     try:
         request  = urllib2.Request("https://checker.apache.org/json/", None)
         response = urllib2.urlopen(request, timeout=1)
-        checker_json = response.read()
+        content  = response.read()
+        checker_json = json.loads(content)
     except:
         checker_json = readJson(RAOHOME+"data/cache/checker.json", None)
     checker = {}



Mime
View raw message