You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2010/06/24 20:48:53 UTC

svn commit: r957676 - /qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py

Author: tross
Date: Thu Jun 24 18:48:53 2010
New Revision: 957676

URL: http://svn.apache.org/viewvc?rev=957676&view=rev
Log:
Handle the case where older versions of the broker supply no delivery-properties to messages
originated from within the broker.

Modified:
    qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py

Modified: qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py?rev=957676&r1=957675&r2=957676&view=diff
==============================================================================
--- qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py (original)
+++ qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py Thu Jun 24 18:48:53 2010
@@ -2381,7 +2381,7 @@ class Broker(Thread):
       #
       dp = msg.get("delivery_properties")
       rkey = None
-      if dp.routing_key:
+      if dp and dp.routing_key:
         rkey = dp.routing_key
         items = rkey.split('.')
         if len(items) >= 4:



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org