[tor-commits] [gettor/master] Update script add_links_to_db

hiro at torproject.org hiro at torproject.org
Sat Aug 31 13:17:19 UTC 2019


commit 326175d0fc353bd90d4cb52df2f03ebe500be0ae
Author: hiro <hiro at 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))



More information about the tor-commits mailing list