diff options
Diffstat (limited to 'sphinx/util/requests.py')
-rw-r--r-- | sphinx/util/requests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/requests.py b/sphinx/util/requests.py index b25304d37..0f52d61ef 100644 --- a/sphinx/util/requests.py +++ b/sphinx/util/requests.py @@ -19,7 +19,7 @@ useragent_header = [('User-Agent', @contextmanager def ignore_insecure_warning(**kwargs: Any) -> Generator[None, None, None]: with warnings.catch_warnings(): - if not kwargs.get('verify') and InsecureRequestWarning: + if not kwargs.get('verify'): # ignore InsecureRequestWarning if verify=False warnings.filterwarnings("ignore", category=InsecureRequestWarning) yield |