mirror of
https://github.com/YunoHost/yunodevtools.git
synced 2024-09-03 20:16:19 +02:00
feat(clone_packages): ensure that all request have a timeout
This commit is contained in:
parent
411a5addd9
commit
2d12b2c4e6
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ def generate_mirror_list():
|
|||
|
||||
|
||||
def request_handling_rate_limit(method, *args, **kwargs):
|
||||
if "timeout" not in kwargs:
|
||||
kwargs["timeout"] = 10
|
||||
|
||||
while True:
|
||||
response = method(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue