We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd0e61a commit 429c5bbCopy full SHA for 429c5bb
Get-Dir-Github-Repo/get.py
@@ -1,7 +1,6 @@
1
import argparse
2
import concurrent.futures
3
import fnmatch
4
-import json
5
import sys
6
import os
7
import subprocess
@@ -277,12 +276,12 @@ def fetch(obj):
277
276
r = ""
278
279
try:
280
- r = requests.get(api_url, timeout=30).content.decode("utf-8")
+ r = requests.get(api_url, timeout=30)
281
except requests.exceptions.RequestException:
282
sys.exit("error: Connetion error. Aborted.")
283
284
285
- obj = json.loads(r)
+ obj = r.json()
286
obj_len = len(obj)
287
except:
288
sys.exit(f"error: Could not load files on {url}")
0 commit comments