summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-02-17 17:56:09 +0000
committerRafael H. Schloming <rhs@apache.org>2010-02-17 17:56:09 +0000
commit7ca95b4b4850c7e37c1df37a84a7edfa170e3b35 (patch)
treed2e5289848842fc115978a28628fe15e329d840d
parent0f6d12d3117c50b9ff4f3e7d1ee83d6069b67683 (diff)
downloadqpid-python-7ca95b4b4850c7e37c1df37a84a7edfa170e3b35.tar.gz
only cache addresses that exist
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@911120 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/python/qpid/driver.py3
1 files changed, 2 insertions, 1 deletions
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)