g2p / rfc6266

Content-Disposition header support for Python
GNU Lesser General Public License v3.0
41 stars 43 forks source link

NullHandler should be an instance, not a class #4

Closed ccorbacho closed 10 years ago

ccorbacho commented 10 years ago

The logger expects a NullHandler instance, not a class. Otherwise, if you run this in an environment without a logger already set up, it raises an AttributeError as 'level' is defined on the instance, not the class.

g2p commented 10 years ago

Thank you, I'm surprised I didn't catch this before.