From 1be5e27dfdde0f99912cc3bd510816fbf64af2c1 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Fri, 25 Jun 2010 18:26:14 +0000 Subject: 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 --- qpid/python/qpid/messaging/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/python') 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: -- cgit v1.2.1