[entropy.services] replace exception classes pointing to None

This commit is contained in:
Fabio Erculiani
2009-10-06 21:00:25 +02:00
parent e12726ab11
commit 16d2ecb385
2 changed files with 11 additions and 11 deletions
+5 -5
View File
@@ -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 = {}
+6 -6
View File
@@ -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