From be74dd0398378f3b28d8f63675d3a45e8829a1e1 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 18 Nov 2009 19:19:49 +0000 Subject: Improved exception handling in brokertest.Broker. Don't mask the original exception unless it's a ValueError. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881888 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/brokertest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/qpid/brokertest.py b/python/qpid/brokertest.py index cea976652f..a42e71c25b 100644 --- a/python/qpid/brokertest.py +++ b/python/qpid/brokertest.py @@ -149,7 +149,7 @@ class Broker(Popen): Popen.__init__(self, cmd, expect) try: self.port = int(self.stdout.readline()) - except Exception, e: + except ValueError, e: raise Exception("Failed to start broker %s (%s)" % (self.name, self.pname)) test.cleanup_stop(self) self.host = "localhost" # Placeholder for remote brokers. -- cgit v1.2.1