main
eric 2023-05-04 16:46:57 -04:00
parent 5ce361b81e
commit acaf8777bf
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class ContentTyper(object):
r.status_code = 511 r.status_code = 511
return r return r
except requests.exceptions.ConnectionError as ce: except requests.exceptions.ConnectionError as ce:
if '[Errno 8]' in str(ce) or [Errno -2] in str(ce): if '[Errno 8]' in str(ce) or '[Errno -2]' in str(ce):
try: try:
r = requests.get(url, allow_redirects=False, headers=HEADERS) r = requests.get(url, allow_redirects=False, headers=HEADERS)
return r return r