diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Server/Component.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/Server/Component.py b/src/lib/Server/Component.py index 7e3b9c724..5aebbcbdc 100644 --- a/src/lib/Server/Component.py +++ b/src/lib/Server/Component.py @@ -71,12 +71,10 @@ class TLSServer(Bcfg2.tlslite.api.TLSSocketServerMixIn, sessionCache=self.sc) tlsConnection.ignoreAbruptClose = True return True - except Bcfg2.tlslite.errors.TLSError, socket.error: - print "Handshake failure:", str(error) + except Bcfg2.tlslite.errors.TLSError, error: + return False + except socket.error: return False - except Exception, e: - print "got", e - raise class Component(TLSServer, SimpleXMLRPCServer.SimpleXMLRPCDispatcher): |