From 16d2ecb3850479260c175e51436475b97346d22c Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 6 Oct 2009 21:00:25 +0200 Subject: [PATCH] [entropy.services] replace exception classes pointing to None --- libraries/entropy/services/interfaces.py | 10 +++++----- libraries/entropy/services/ugc/interfaces.py | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/libraries/entropy/services/interfaces.py b/libraries/entropy/services/interfaces.py index 773f53175..d56653818 100644 --- a/libraries/entropy/services/interfaces.py +++ b/libraries/entropy/services/interfaces.py @@ -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 = {} diff --git a/libraries/entropy/services/ugc/interfaces.py b/libraries/entropy/services/ugc/interfaces.py index bb205dc61..51570aa7a 100644 --- a/libraries/entropy/services/ugc/interfaces.py +++ b/libraries/entropy/services/ugc/interfaces.py @@ -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