From 2575eeda775181e2f59875666c39f90220041870 Mon Sep 17 00:00:00 2001 From: eric Date: Wed, 3 May 2023 12:20:23 -0400 Subject: [PATCH] fix bug for SSLErrors --- doab_check/check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doab_check/check.py b/doab_check/check.py index 69d7ef2..bc0e35c 100755 --- a/doab_check/check.py +++ b/doab_check/check.py @@ -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