mirror of
https://github.com/YunoHost/yunodevtools.git
synced 2024-09-03 20:16:19 +02:00
fix(clone_packages): add timeout on generate mirror list request
This commit is contained in:
parent
ce66396fdc
commit
145cd80f61
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ def generate_mirror_list():
|
||||||
existing_clones = []
|
existing_clones = []
|
||||||
|
|
||||||
data = requests.get(
|
data = requests.get(
|
||||||
"https://git.yunohost.org/api/v1/repos/search?topic=false&includeDesc=false&priority_owner_id=17&mode=mirror"
|
"https://git.yunohost.org/api/v1/repos/search?topic=false&includeDesc=false&priority_owner_id=17&mode=mirror",
|
||||||
|
timeout=60,
|
||||||
).json()["data"]
|
).json()["data"]
|
||||||
|
|
||||||
for repo in data:
|
for repo in data:
|
||||||
|
|
Loading…
Add table
Reference in a new issue