From fb0fe7a6873b4655cae4cbeb44478759e406869b Mon Sep 17 00:00:00 2001 From: MineRobber___T Date: Sun, 26 Jun 2016 23:35:38 -0400 Subject: [PATCH] Change JSON load method Replace "json.loads(r.text or r.content)" with the simpler, more official, "r.json()". --- captainhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/captainhook.py b/captainhook.py index 4995686..6addd6a 100755 --- a/captainhook.py +++ b/captainhook.py @@ -36,7 +36,7 @@ doall = False r = requests.get('https://api.github.com/orgs/%s/repos?per_page=100' % (org,), auth=auth) if r.ok: - j = json.loads(r.text or r.content) + j = r.json() for org in j: name = org['name'] hurl = org['hooks_url']