Commit ded7335a authored by Denis Bilenko's avatar Denis Bilenko

monkey: do not fail patch_all() if ssl package is not installed (on Python2.5 or older)

parent 652b37b0
......@@ -197,7 +197,10 @@ def patch_all(socket=True, dns=True, time=True, select=True, thread=True, os=Tru
if select:
patch_select(aggressive=aggressive)
if ssl:
patch_ssl()
try:
patch_ssl()
except ImportError:
pass # python <= 2.5 and ssl package is not installed
if httplib:
patch_httplib()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment