mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #3218 from tk0miya/3205_requests_crashes_with_old_pyopenssl
#3205: sphinx.util.requests crashes with old pyOpenSSL (< 0.14)
This commit is contained in:
commit
048a35ee54
1
CHANGES
1
CHANGES
@ -17,6 +17,7 @@ Bugs fixed
|
||||
* #3212: HTML Builders crashes with docutils-0.13
|
||||
* #3207: more latex problems with references inside parsed-literal directive
|
||||
(``\DUrole``)
|
||||
* #3205: sphinx.util.requests crashes with old pyOpenSSL (< 0.14)
|
||||
|
||||
|
||||
Release 1.5 (released Dec 5, 2016)
|
||||
|
@ -22,7 +22,8 @@ from requests.packages.urllib3.exceptions import SSLError, InsecureRequestWarnin
|
||||
# try to load requests[security]
|
||||
try:
|
||||
pkg_resources.require(['requests[security]'])
|
||||
except pkg_resources.DistributionNotFound:
|
||||
except (pkg_resources.DistributionNotFound,
|
||||
pkg_resources.VersionConflict):
|
||||
import ssl
|
||||
if not getattr(ssl, 'HAS_SNI', False):
|
||||
# don't complain on each url processed about the SSL issue
|
||||
|
Loading…
Reference in New Issue
Block a user