From 32db80c7eff1d154cb4698abfd1cc3f68bb8dd4e Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 5 Nov 2016 15:07:08 +0000 Subject: [PATCH] Replace NameError SSL with correctly-imported OpenSSL.SSL. --- src/common/socks5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/socks5.py b/src/common/socks5.py index faf1d73b5..60b3584fe 100644 --- a/src/common/socks5.py +++ b/src/common/socks5.py @@ -887,8 +887,8 @@ class Socks5(object): """ try: buff = self._recv().decode('utf-8') - except (SSL.WantReadError, SSL.WantWriteError, - SSL.WantX509LookupError) as e: + except (OpenSSL.SSL.WantReadError, OpenSSL.SSL.WantWriteError, + OpenSSL.SSL.WantX509LookupError) as e: log.info("SSL rehandshake request : " + repr(e)) raise e try: