Fix-up 3ea1c9f no longer handling ssl being None

This commit is contained in:
Lonami 2019-04-28 14:13:29 +02:00 committed by GitHub
parent 3ea1c9f04b
commit 1805dc48ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,9 @@ __log__ = logging.getLogger(__name__)
lib = ctypes.util.find_library('ssl')
try:
if not lib:
raise OSError('no library called "ssl" found')
_libssl = ctypes.cdll.LoadLibrary(lib)
except OSError as e:
# See https://github.com/LonamiWebs/Telethon/issues/1167