From 7ca95b4b4850c7e37c1df37a84a7edfa170e3b35 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Wed, 17 Feb 2010 17:56:09 +0000 Subject: only cache addresses that exist git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@911120 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/qpid/driver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qpid/python') diff --git a/qpid/python/qpid/driver.py b/qpid/python/qpid/driver.py index 859ad99040..3b9d7aa9fa 100644 --- a/qpid/python/qpid/driver.py +++ b/qpid/python/qpid/driver.py @@ -742,7 +742,8 @@ class Driver: type, subtype = "queue", None else: type, subtype = "topic", er.type - self.address_cache[name] = (type, subtype) + if type is not None: + self.address_cache[name] = (type, subtype) action(type, subtype) sst.write_query(ExchangeQuery(name), do_result) sst.write_query(QueueQuery(name), do_action) -- cgit v1.2.1