Closed href closed 9 years ago
I see, it's actually a new line followed by the colon, so I was unable to replicate it with just newlines.
It's actually caused by \nDETAIL:
Should be fixed by replacing newlines with just spaces in Subject as suggested.
That's funny, I just asked you some questions at Europython about filedeopt, when you were probably fixing this bug ;)
I discovered that my backlash setup fails to report SQLAlchemy exceptions with the following error:
Replacing all newlines in the subject in
EmailReporter.assemble_email
seems to fix the problem.The cause of this error is the following check in the standard library: https://github.com/python/cpython/blob/2.7/Lib/email/header.py#L411