diff options
author | Rafael H. Schloming <rhs@apache.org> | 2010-06-25 18:26:14 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2010-06-25 18:26:14 +0000 |
commit | 11e1f407d74f3529ecca0c8768d27f836ede73a5 (patch) | |
tree | fe44a20de95f19e9446da912ca55ffd80f8a0d1d /python/qpid/messaging/driver.py | |
parent | 0eac760be17bba07698ba02999d5be53c5a08c1f (diff) | |
download | qpid-python-11e1f407d74f3529ecca0c8768d27f836ede73a5.tar.gz |
make sure we initialize properties even if application_headers is None
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@958060 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/messaging/driver.py')
-rw-r--r-- | python/qpid/messaging/driver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qpid/messaging/driver.py b/python/qpid/messaging/driver.py index ed6b60287a..a732a60a9f 100644 --- a/python/qpid/messaging/driver.py +++ b/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: |