Giter Site home page Giter Site logo

Comments (5)

ebdavison avatar ebdavison commented on September 25, 2024

I did a little bit more digging and found the following that had a None in one of the values.

image

Not sure how it got in there nor how to fix it so I just removed it with delete() and now I can get a list again...

Any thoughts on how to fix this or even better a way for the function to NOT error 500 when a None is returned?

from django-mailer.

spookylukey avatar spookylukey commented on September 25, 2024

We could fix the admin by doing:

return ", ".join(map(str, message.to_addresses))

in the line you identified in the stack trace. If you could test that, that would really help.

In addition to that, you'll need to fix your code to ensure you aren't passing to=None, because that will cause issues down the line anyway.

from django-mailer.

ebdavison avatar ebdavison commented on September 25, 2024

I can test that. I thought all of my email sending code had a check for None already but I will also check for that as well to prevent future issues.

from django-mailer.

ebdavison avatar ebdavison commented on September 25, 2024

I have checked by DB and cannot find any email address records that are empty (None) so thought the best way to handle this is as recommended.

from django-mailer.

ebdavison avatar ebdavison commented on September 25, 2024

I have a PR open on this; any chance it can be reviewed?

from django-mailer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.