This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author oon
Recipients oon
Date 2021-01-02.04:23:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609561396.29.0.629926386929.issue42807@roundup.psfhosted.org>
In-reply-to
Content
I want to enhance the error message on the send_message method of class SMTP, in module smtplib.

One of the parameters on send_message is msg which is email.message.Message object, this is a required argument. If the msg is None, currently it will raise "AttributeError: 'NoneType' object has no attribute 'get_all'".
This message is not straight forward and a bit hard to debug.

As the easy fix with additional check if msg is None in send_message method.

I want to add PR on this, also with the additional test(s). This is my first issue, appreciate any feedback. thank you.
History
Date User Action Args
2021-01-02 04:23:16oonsetrecipients: + oon
2021-01-02 04:23:16oonsetmessageid: <1609561396.29.0.629926386929.issue42807@roundup.psfhosted.org>
2021-01-02 04:23:16oonlinkissue42807 messages
2021-01-02 04:23:16ooncreate