2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 00:04:38 +00:00

fix: bad URL in raw.githubusercontent.com (#1363)

This commit is contained in:
HENRY Florian 2022-08-28 13:36:06 +02:00 committed by GitHub
parent 871c703ee3
commit 589f7a400e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,7 @@ def get_required_deps(org, name, branch, deps="hooks.py"):
res = requests.get(url=git_api_url, params=params).json()
if "message" in res:
git_url = f"https://raw.githubusercontent.com/{org}/{name}/{params['branch']}/{deps}"
git_url = f"https://raw.githubusercontent.com/{org}/{name}/{params['branch']}/{name}/{deps}"
return requests.get(git_url).text
return base64.decodebytes(res["content"].encode()).decode()