flask-mail icon indicating copy to clipboard operation
flask-mail copied to clipboard

assert message.send_to can never fail

Open sylann opened this issue 8 years ago • 0 comments

https://github.com/mattupstate/flask-mail/blob/1709c70d839a7cc7b1f7eeb97333b71cd420fe32/flask_mail.py#L175

message.send_to is a set and if it contains None values it still is truthy.

assert set([None]) # True

sylann avatar Nov 09 '17 10:11 sylann