Commit 28cf3e24 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

check_health.py: add timeout fallback

parent d51f4857
......@@ -64,6 +64,8 @@ for entry in entries:
status = e.resp.status
except urllib.error.HTTPError as e:
status = e.code
except urllib.error.URLError as e:
status = e.reason
date = time.time()
with open(hfile, "wb") as f:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment