diff options
author | Alan Conway <aconway@apache.org> | 2009-11-18 19:19:49 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-11-18 19:19:49 +0000 |
commit | be74dd0398378f3b28d8f63675d3a45e8829a1e1 (patch) | |
tree | eeb4214ad3d29089a1506aa61d3c9a7bc3e230bd | |
parent | 9845877fe252577c04c932de72d85d3a920acfc2 (diff) | |
download | qpid-python-be74dd0398378f3b28d8f63675d3a45e8829a1e1.tar.gz |
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
-rw-r--r-- | python/qpid/brokertest.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. |