Getting message to STDERR: No handlers could be found for logger "lepl.parser.trampoline"

12 views
Skip to first unread message

Bigendian

unread,
Mar 15, 2011, 7:33:36 PM3/15/11
to lepl
Hello,

I downloaded lepl this afternoon while looking for a quick email
validator. It looks perfect for what I need, but I keep getting the
following error when testing an invalid email address:

No handlers could be found for logger "lepl.parser.trampoline"

Testing valid email addresses works as expected. Here's a little code
derived from the examples that should repro the issue. I'm using lepl
4.4.0 installed from easy_install on Linux.


#!/usr/bin/python

from lepl.apps.rfc3696 import Email

validator = Email()

if not validator('BAD_EMAIL_ADDRESS'):
print "BAD EMAIL"


Any ideas on why I'm getting this message?

Thanks,
Tom

andrew cooke

unread,
Mar 15, 2011, 8:24:22 PM3/15/11
to le...@googlegroups.com

Hi,

It logs to Python's logging library. If you're not using that (and not many
people are!) then add the following somewhere:

from logging import basicConfig, ERROR
basicConfig(level=ERROR)

I'll add this to the FAQ - it should be better documented.

Cheers,
Andrew

> --
> You received this message because you are subscribed to the Google Groups "lepl" group.
> To post to this group, send email to le...@googlegroups.com.
> To unsubscribe from this group, send email to lepl+uns...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/lepl?hl=en.
>

Reply all
Reply to author
Forward
0 new messages