diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-03-20 16:29:18 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-03-20 16:29:18 +0000 |
commit | b6a1038394e58c7ef26dd54ccdd7e2b96b43af5a (patch) | |
tree | 1e1a9169a47e38a267fd25b43828b82e53d44c2e /src/lib/Server/Component.py | |
parent | e0f090a1ea6e20f464c85021bf33bb9bad242141 (diff) | |
download | bcfg2-b6a1038394e58c7ef26dd54ccdd7e2b96b43af5a.tar.gz bcfg2-b6a1038394e58c7ef26dd54ccdd7e2b96b43af5a.tar.bz2 bcfg2-b6a1038394e58c7ef26dd54ccdd7e2b96b43af5a.zip |
Improve error handling
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2955 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Component.py')
-rw-r--r-- | src/lib/Server/Component.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Server/Component.py b/src/lib/Server/Component.py index 217f6414b..b9f7d798c 100644 --- a/src/lib/Server/Component.py +++ b/src/lib/Server/Component.py @@ -71,9 +71,12 @@ class TLSServer(Bcfg2.tlslite.api.TLSSocketServerMixIn, sessionCache=self.sc) tlsConnection.ignoreAbruptClose = True return True - except Bcfg2.tlslite.errors.TLSError, error: + except Bcfg2.tlslite.errors.TLSError, socket.error: print "Handshake failure:", str(error) return False + except Exception, e: + print "got", e + raise class Component(TLSServer, SimpleXMLRPCServer.SimpleXMLRPCDispatcher): |