mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-18 11:31:06 +00:00
Ignore urllib3 warnings about invalid SSL certs since we check them ourselves.
This commit is contained in:
parent
2354f16dbb
commit
c684918ba6
1 changed files with 7 additions and 0 deletions
|
|
@ -19,6 +19,13 @@ Handle http links.
|
|||
"""
|
||||
|
||||
import requests
|
||||
# The validity of SSL certs is ignored to be able
|
||||
# the check the URL and recurse into it.
|
||||
# The warning about invalid SSL certs is given to the
|
||||
# user instead.
|
||||
import warnings
|
||||
warnings.simplefilter('ignore', requests.packages.urllib3.exceptions.InsecureRequestWarning)
|
||||
|
||||
from cStringIO import StringIO
|
||||
|
||||
from .. import (log, LOG_CHECK, strformat, mimeutil,
|
||||
|
|
|
|||
Loading…
Reference in a new issue