From 87bfc9d3b84a3272a2ddc2092c9b712b7f16fd1c Mon Sep 17 00:00:00 2001 From: Christian Stemmle Date: Sat, 19 Aug 2017 19:35:06 +0200 Subject: [PATCH] Update libssl.py --- telethon/crypto/libssl.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telethon/crypto/libssl.py b/telethon/crypto/libssl.py index e7c92b66..58437ced 100644 --- a/telethon/crypto/libssl.py +++ b/telethon/crypto/libssl.py @@ -5,8 +5,9 @@ from ctypes.util import find_library # search and load libssl.so lib = find_library('ssl') if not lib: - raise ImportError('libssl.so not found') -libssl = ctypes.cdll.LoadLibrary(lib) + libssl = None +else: + libssl = ctypes.cdll.LoadLibrary(lib) """ # define AES_ENCRYPT 1