From 715f4706f00643bba3474ef1a291cd88564551c2 Mon Sep 17 00:00:00 2001 From: eckbalu <eckbalu@sch.bme.hu> Date: Thu, 6 Apr 2023 17:23:21 +0200 Subject: [PATCH] change exception handling --- latency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latency.py b/latency.py index d339d94..43b1d10 100644 --- a/latency.py +++ b/latency.py @@ -18,7 +18,7 @@ def latency_measurement(hostname, filename): if request.status_code == 200: latency = current_microsec() - current_time # print(str(request.status_code) + 'happiness') - except requests.ConnectionError: + except Exception: latency = -1 content = request.text title = content[45:50] -- GitLab