Skip to content
Snippets Groups Projects
Commit ba95764f authored by Emanuele Aina's avatar Emanuele Aina
Browse files

test_urls: Ensure status is set despite exceptions

parent 0667a454
No related branches found
No related tags found
1 merge request!279URL checker tweaks
......@@ -74,6 +74,7 @@ broken = 0
for url in urls:
print("%s : " %(url), end='')
sys.stdout.flush()
status = None
try:
resp = requests.head(url, headers=headers, allow_redirects=True, timeout=60, verify=False)
status = resp.ok
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment