summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-06-25 18:26:14 +0000
committerRafael H. Schloming <rhs@apache.org>2010-06-25 18:26:14 +0000
commit1be5e27dfdde0f99912cc3bd510816fbf64af2c1 (patch)
tree449771f1e52aa4fb7cd306c2ccd2594f3687a918 /qpid/python
parent876e236813eab6c6e81ab81b8eecf5b1fe6d5896 (diff)
downloadqpid-python-1be5e27dfdde0f99912cc3bd510816fbf64af2c1.tar.gz
make sure we initialize properties even if application_headers is None
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@958060 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/messaging/driver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/python/qpid/messaging/driver.py b/qpid/python/qpid/messaging/driver.py
index ed6b60287a..a732a60a9f 100644
--- a/qpid/python/qpid/messaging/driver.py
+++ b/qpid/python/qpid/messaging/driver.py
@@ -1244,7 +1244,7 @@ class Engine:
msg.priority = dp.priority
msg.ttl = dp.ttl
msg.redelivered = dp.redelivered
- msg.properties = mp.application_headers
+ msg.properties = mp.application_headers or {}
if mp.app_id is not None:
msg.properties["x-amqp-0-10.app-id"] = mp.app_id
if mp.content_encoding is not None: