summaryrefslogtreecommitdiff
path: root/qpid/python/qpid/driver.py
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/python/qpid/driver.py')
-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)