This commit is contained in:
Ali Abid 2021-03-01 17:26:19 -08:00
commit c00aad37c0

View File

@ -320,7 +320,10 @@ def setup_tunnel(local_server_port):
def url_ok(url):
try:
r = requests.head(url)
return r.status_code == 200
for _ in range(5):
time.sleep(.500)
r = requests.head(url)
if r.status_code == 200:
return True
except (ConnectionError, requests.exceptions.ConnectionError):
return False