Skip to content
Snippets Groups Projects
Commit 436e2bd7 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-516: proton has the content property encoded as 'body'

parent 70d1e6c8
No related branches found
No related tags found
No related merge requests found
......@@ -187,6 +187,8 @@ class LofarMessage(object):
return getattr(self.__dict__['_qpid_msg'], name)
if name in self.__dict__['_qpid_msg'].__dict__['properties']:
return self.__dict__['_qpid_msg'].__dict__['properties'][name]
if name == 'content':
return self.__dict__['_qpid_msg'].body
raise AttributeError("%r object has no attribute %r" %
(self.__class__.__name__, name))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment