fix bug for SSLErrors

main
eric 2023-05-03 12:20:23 -04:00
parent 12f25515e9
commit 2575eeda77
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ class ContentTyper(object):
except requests.exceptions.SSLError:
r = requests.get(url, verify=False)
r.status_code = 511
return r
except:
# unexplained error
return None
@ -120,5 +121,6 @@ def check_link(link):
check.save()
check.link.recent_check = check
check.link.save()
return check