summaryrefslogtreecommitdiff
path: root/python/qpid/driver.py
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
commit3b5c8116495040153703d0849c45d9d521f96b79 (patch)
tree40bca047f30afdaf28a96de46137102c20aa8f0c /python/qpid/driver.py
parent0ea9a341cb5b1900e16c705c779e9606f82d0a07 (diff)
downloadqpid-python-3b5c8116495040153703d0849c45d9d521f96b79.tar.gz
only cache addresses that exist
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@911120 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/driver.py')
-rw-r--r--python/qpid/driver.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/qpid/driver.py b/python/qpid/driver.py
index 859ad99040..3b9d7aa9fa 100644
--- a/python/qpid/driver.py
+++ b/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)