mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 23:12:46 +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
|
@ -1331,7 +1331,7 @@ class vcs_gitsvn(vcs):
|
|||
# git-svn sucks at certificate validation, this throws useful errors:
|
||||
try:
|
||||
import requests
|
||||
r = requests.head(remote)
|
||||
r = requests.head(remote, timeout=300)
|
||||
r.raise_for_status()
|
||||
except Exception as e:
|
||||
raise VCSException('SVN certificate pre-validation failed: ' + str(e)) from e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue