ebin123456 / py-amqplib

Automatically exported from code.google.com/p/py-amqplib
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Comparing a message against a non-message can cause an exception. #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which version of amqplib are you using?

    Version 0.6.2-devel

Which broker are you using (RabbitMQ?) which version?

rabbitmq 2.5.0

Which version of Python?

Python 2.6.1

What steps will reproduce the problem?

1. Receive a message from the queue.
2. Compare the message against something without the 'properties' attribute.
3. Watch an exception be raised.

What is the expected output? What do you see instead?

A comparison is a simple operation that should not cause exceptions. Only true 
or false.

Please provide any additional information below.

I've attached a patch to fix the issue.

Original issue reported on code.google.com by Tarrant....@gmail.com on 8 Jul 2011 at 5:41

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
OK, fixed in Revision 2d07288abe2b , thanks for pointing this out.

Original comment by barry.pe...@gmail.com on 18 Jul 2011 at 4:48