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

View File

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