mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
Add timeout argument to requests.(get,post)
This commit is contained in:
parent
cf0100cf11
commit
c89a9f0e8b
11 changed files with 23 additions and 15 deletions
|
@ -14,7 +14,10 @@ checksums = None
|
|||
versions = dict()
|
||||
|
||||
while not checksums:
|
||||
r = requests.get('https://gitlab.com/fdroid/gradle-transparency-log/-/raw/master/checksums.json')
|
||||
r = requests.get(
|
||||
'https://gitlab.com/fdroid/gradle-transparency-log/-/raw/master/checksums.json',
|
||||
timeout=300,
|
||||
)
|
||||
if r.status_code == 200:
|
||||
checksums = r.json()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue