[entropy.services] replace exception classes pointing to None
This commit is contained in:
@@ -1505,11 +1505,11 @@ class SocketHost:
|
||||
self.__output = None
|
||||
self.SSL = {}
|
||||
self.SSL_exceptions = {}
|
||||
self.SSL_exceptions['WantReadError'] = None
|
||||
self.SSL_exceptions['WantWriteError'] = None
|
||||
self.SSL_exceptions['WantX509LookupError'] = None
|
||||
self.SSL_exceptions['ZeroReturnError'] = None
|
||||
self.SSL_exceptions['SysCallError'] = None
|
||||
self.SSL_exceptions['WantReadError'] = DumbException
|
||||
self.SSL_exceptions['WantWriteError'] = DumbException
|
||||
self.SSL_exceptions['WantX509LookupError'] = DumbException
|
||||
self.SSL_exceptions['ZeroReturnError'] = DumbException
|
||||
self.SSL_exceptions['SysCallError'] = DumbException
|
||||
self.SSL_exceptions['Error'] = []
|
||||
self.last_print = ''
|
||||
self.valid_commands = {}
|
||||
|
||||
@@ -1754,12 +1754,12 @@ class Client:
|
||||
# SSL Support
|
||||
self.SSL = {}
|
||||
self.SSL_exceptions = {
|
||||
'WantReadError': None,
|
||||
'WantWriteError': None,
|
||||
'WantX509LookupError': None,
|
||||
'ZeroReturnError': None,
|
||||
'Error': None,
|
||||
'SysCallError': None
|
||||
'WantReadError': DumbException,
|
||||
'WantWriteError': DumbException,
|
||||
'WantX509LookupError': DumbException,
|
||||
'ZeroReturnError': DumbException,
|
||||
'Error': DumbException,
|
||||
'SysCallError': DumbException,
|
||||
}
|
||||
self.ssl = ssl
|
||||
self.pyopenssl = True
|
||||
|
||||
Reference in New Issue
Block a user