Mar-08-2022, 09:36 PM
You're still consuming the traceback so I can't tell what function is erroring. Maybe try printing out the msg.as_string() before sending. It may either fail (which tells you more about where to look), or you might see something wrong in the output.