[gettor/master] Update script add_links_to_db

31 Aug
2019
31 Aug
'19
1:17 p.m.
commit 326175d0fc353bd90d4cb52df2f03ebe500be0ae Author: hiro <hiro@torproject.org> Date: Sat Aug 31 15:17:16 2019 +0200 Update script add_links_to_db --- scripts/add_links_to_db | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/add_links_to_db b/scripts/add_links_to_db index 896e2c1..718f551 100755 --- a/scripts/add_links_to_db +++ b/scripts/add_links_to_db @@ -61,7 +61,7 @@ def main(): webFile = request.urlopen(TOR_BROWSER_DOWNLOADS) content = webFile.read() - jsonObj = json.loads(content) + jsonObj = json.loads(content.json()) version = jsonObj.get("version", None) if version is None: print("Could not fetch version from {}.".format(TOR_BROWSER_DOWNLOADS))
2084
Age (days ago)
2084
Last active (days ago)
0 comments
1 participants
participants (1)
-
hiro@torproject.org