Added a timeout to the https ping

For those not using https who might have it firewalled, this request without a timeout causes significant delay. Adding a moderately generous timeout shouldn't affect anyone negatively, but will make things a bit nicer otherwise.
This commit is contained in:
Kevin Littlejohn 2014-07-31 11:08:39 +10:00
parent 18758430d0
commit e607eaa19c
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ def compare_version(v1, v2):
def ping(url):
try:
res = requests.get(url)
res = requests.get(url, timeout=3)
except Exception:
return False
else: