[New-bugs-announce] [issue22684] message.as_bytes() produces recursion depth exceeded

Pas report at bugs.python.org
Tue Oct 21 14:29:26 CEST 2014

New submission from Pas:

Please see the attached traceback (or this http://pastebin.com/WYinRGie for fancy colors).

It depends on message size, we're trying to send Multipart MIME messages (a PDF attached, that has an image embedded).

After editing flask_mail.py to use the fallback ( message().as_string().encode(self.charset or 'utf-8') ) things work again.

If anyone could help confirm if this is a bug, or help me understand how I misuse the library, I'd be grateful. Thanks!

components: email
files: py34-email.message.as_bytes-recursion-depth-exceeded.txt
messages: 229762
nosy: barry, pas, r.david.murray
priority: normal
severity: normal
status: open
title: message.as_bytes() produces recursion depth exceeded
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file36988/py34-email.message.as_bytes-recursion-depth-exceeded.txt

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list