From fb4e246a91b5d83bbe2094a1433e842cdea1262b 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@881888 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/qpid/brokertest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/python') diff --git a/qpid/python/qpid/brokertest.py b/qpid/python/qpid/brokertest.py index cea976652f..a42e71c25b 100644 --- a/qpid/python/qpid/brokertest.py +++ b/qpid/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