def callback(ch, method, properties, body): prop = properties print prop
This is a list from prop:
<BasicProperties(['delivery_mode=2', "headers={'BIProto.ClickEvent': 'BIProto.ClickEvent'}", 'content_type=application/x-protobuf'])>
I can print a body and a list of basic properties. But how can I get the headers?
All #print statements in the error-ed function.
source share