Skip to content
Snippets Groups Projects
Commit 715f4706 authored by Eck Balázs István's avatar Eck Balázs István
Browse files

change exception handling

parent 2ec1fc2d
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment