Skip to content

Commit

Permalink
Merge pull request #3218 from tk0miya/3205_requests_crashes_with_old_…
Browse files Browse the repository at this point in the history
…pyopenssl

#3205: sphinx.util.requests crashes with old pyOpenSSL (< 0.14)
  • Loading branch information
tk0miya authored Dec 11, 2016
2 parents c337912 + 52811d6 commit 048a35e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion sphinx/util/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
# 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
Expand Down

0 comments on commit 048a35e

Please sign in to comment.