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 | fb4e246a91b5d83bbe2094a1433e842cdea1262b (patch) | |
tree | fad27e1f2879932df02e116b6731f26beed13524 | |
parent | 5c5b03b27c70045af1c3a048619deebdc17429bf (diff) | |
download | qpid-python-fb4e246a91b5d83bbe2094a1433e842cdea1262b.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@881888 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/python/qpid/brokertest.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. |