From f2ef3736b292ff1f70a9b54e4782194673931acf Mon Sep 17 00:00:00 2001 From: Roel ter Maat Date: Thu, 2 Mar 2023 20:10:54 +0100 Subject: [PATCH] Update txredisapi.py Co-authored-by: Ilya Skriblovsky --- txredisapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txredisapi.py b/txredisapi.py index 3aae200..11c1d7b 100644 --- a/txredisapi.py +++ b/txredisapi.py @@ -2388,7 +2388,7 @@ def makeConnection(host, port, dbid, poolsize, reconnect, isLazy, charset, password, replyTimeout, convertNumbers) factory.continueTrying = reconnect for x in range(poolsize): - if isinstance(ssl_context_factory, bool) and ssl_context_factory is True: + if ssl_context_factory is True: ssl_context_factory = ssl.ClientContextFactory() if ssl_context_factory: reactor.connectSSL(host, port, factory, ssl_context_factory, connectTimeout)