#30058: Consistent return values for SMTP EmailBackend.send_messages()
------------------------------------------+------------------------
Reporter: Denis Stebunov | Owner: nobody
Type: Uncategorized | Status: new
Component: Core (Mail) | Version: 2.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+------------------------
In its current version, EmailBackend.send_messages() would return None if
no messages were sent due to a connection error, or a number of sent
messages otherwise.
The proposal is to return 0 instead of None so that this method always
returns an integer. As far as I can see, other built-in email backends in
Django always return an integer.
PR available: [https://github.com/django/django/pull/10784]
--
Ticket URL: <https://code.djangoproject.com/ticket/30058>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.b366d7021d5ce43fca9c885cc1e118d7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.