in plugins/atlas-link-checker/atlas_link_checker/main.py [0:0]
def bad_link(link: Tag) -> bool:
try:
r = requests.get(link['href'], allow_redirects=False, timeout=0.5)
except requests.exceptions.ConnectionError:
return True
if r.ok:
return False
else:
return True