summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2010-07-20 17:44:00 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2010-07-20 17:44:00 +0000
commit021c302875073950ff15e8619eecef6e0e050abd (patch)
tree6416fd9fee59c7750ccc4e8ff137d7e2f2cb0739 /extras
parentb5803d0a340dfa717d4df3477285ca2a4652e041 (diff)
downloadqpid-python-021c302875073950ff15e8619eecef6e0e050abd.tar.gz
QMF: bugfix - save the exception object generated on broker connection setup failure.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@965927 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'extras')
-rw-r--r--extras/qmf/src/py/qmf/console.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/extras/qmf/src/py/qmf/console.py b/extras/qmf/src/py/qmf/console.py
index d198560224..f652ef5f3d 100644
--- a/extras/qmf/src/py/qmf/console.py
+++ b/extras/qmf/src/py/qmf/console.py
@@ -2221,18 +2221,10 @@ class Broker(Thread):
return True # connection complete
- except socket.error, e:
- self.error = "Socket Error %s - %s" % (e.__class__.__name__, e)
- except Closed, e:
- self.error = "Connect Failed %s - %s" % (e.__class__.__name__, e)
- except ConnectionFailed, e:
- self.error = "Connect Failed %s - %s" % (e.__class__.__name__, e)
- except:
- e = Exception("Unknown connection exception")
- self.error = str(e)
-
- self.conn_exc = e
- return False # connection failed
+ except Exception, e:
+ self.error = "Exception during connection setup: %s - %s" % (e.__class__.__name__, e)
+ self.conn_exc = e
+ return False # connection failed
def _updateAgent(self, obj):
bankKey = str(obj.agentBank)