in scripts/cronjobs/parsecommitters.py [0:0]
def loadJson(url):
print("Reading " +url)
resp = uc.get(url, name=None, encoding='utf-8', errors=None)
try:
content = resp.read() # json.load() does this anyway
try:
j = json.loads(content)
except Exception as e:
# The Proxy error response is around 4800 bytes
print("Error parsing response:\n%s" % content[0:4800])
raise e
finally:
resp.close()
return j