Message384216
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. |
|
Date |
User |
Action |
Args |
2021-01-02 04:23:16 | oon | set | recipients:
+ oon |
2021-01-02 04:23:16 | oon | set | messageid: <1609561396.29.0.629926386929.issue42807@roundup.psfhosted.org> |
2021-01-02 04:23:16 | oon | link | issue42807 messages |
2021-01-02 04:23:16 | oon | create | |
|