First time here? Check out the FAQ!

Revision history  [back]

I had the same problem. It was occurring with BeautifulSoup-4.2.0. I downgraded to BeautifulSoup-4.1.3 (pip install beautifulsoup4==4.1.3) and the problem has gone away. Obviously, this is a temporary solution, but at least I've gotten things to work.

The real problem has to be some quirk in the HTML that is being generated for the email body - when I have a little time, I'll investigate further, and if I find anything useful, I'll post an update.