[docs] 15.9.11. SMTPHandler - bug?
Sandro Tosi
sandro.tosi at gmail.com
Sun Jul 31 20:03:38 CEST 2011
Hello Alexander,
On Fri, Jul 29, 2011 at 15:45, Alexander Heger <alex.heger at gmail.com> wrote:
> I use Python 2.7.1 that comes with the current Fedora 15
> 2.6.38.8-35.fc15.x86_64.
> When I try to use the logging.handlers.SMTPHandler I get
>
>
> Traceback (most recent call last):
> File "/usr/lib64/python2.7/logging/handlers.py", line 885, in emit
> smtp.starttls(*self.secure)
> TypeError: starttls() argument after * must be a sequence, not bool
> Logged from file <ipython console>, line 1
>
> so it should be called with a tuple to make it work, not just a
> Boolean. Or the code needs to be changed, but maybe easier to just
> change documentation
>
> secure=(True,)
>
> It still does not work in the end, however.
It's a bit more complicated than that: I've just filed
http://bugs.python.org/issue12667 to fix it. Thanks for spotting it!
Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
More information about the docs
mailing list