mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-18 19:16:43 +00:00
Fix-up 3ea1c9f
no longer handling ssl being None
This commit is contained in:
parent
3ea1c9f04b
commit
1805dc48ec
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user