Replace NameError SSL with correctly-imported OpenSSL.SSL.

This commit is contained in:
Emmanuel Gil Peyrot 2016-11-05 15:07:08 +00:00
parent 2dffaa7d75
commit 32db80c7ef
1 changed files with 2 additions and 2 deletions

View File

@ -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: