majek / puka

Puka - the opinionated RabbitMQ client
https://github.com/majek/puka
Other
182 stars 34 forks source link

Function table.encode produces NameError if value cannot be encoded. #42

Closed rgonzalezramos closed 11 years ago

rgonzalezramos commented 11 years ago

Ran into this by mistake. The variable "key" is not defined anywhere, so it produces a NameError while trying to print the assert message. I guess it's mean to be "pieces" instead.

From lines 176:177 of puka/table.py

        assert False, "Unsupported field kind during encoding %r/%r" % (
            key, value)

Thanks for such a good implementation of an AMQP client!

majek commented 11 years ago

Nice catch :) Fancy submitting a trivial pull request?