django-mailer
django-mailer copied to clipboard
fix for expected str instance, NoneType found
Closes: #149
Error encountered:
File "/home/otcomm/otcomm/otcommenv/lib/python3.9/site-packages/mailer/engine.py", line 191, in send_all
", ".join(message.to_addresses))
TypeError: sequence item 1: expected str instance, NoneType found
Changes proposed in this PR:
- fix situation where email address is None when submitted from Django view to django-mailer
Tips for an ideal PR
- You have read our Code of Conduct: https://github.com/pinax/.github/blob/master/CODE_OF_CONDUCT.md
- You have read our Contributing info: https://github.com/pinax/.github/blob/master/CONTRIBUTING.md
- The PR is atomic
- Unit tests have been updated/added, if needed
- App version number has been updated in
setup.py(Pinax uses SemVer) Change Loghas been updated- You have added your name to the
AUTHORSfile