[IMP]Uptime : use default timeout, to 6 secs

This commit is contained in:
Fabien BOURGEOIS 2022-05-07 11:00:22 +02:00
parent 3c08ba5ac7
commit 1c1e447db0
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from config import HC_ROOT, CONFIG
def check_domain(domain):
try:
r = get('https://%s' % domain)
r = get('https://%s' % domain, timeout=6)
except Exception as e:
return (e, 0)
return (r.status_code, r.elapsed)