#26210: When emailing the admins about exceptions and an error occurs, it
continues
as if there had been no error
-----------------------------+--------------------
Reporter: aptiko | Owner: nobody
Type: Bug | Status: new
Component: Core (Mail) | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------
My server had a 500 error, and Django was trying to email the error
information to the ADMINS. Upon reaching
https://github.com/django/django/blob/0ed7d15/django/core/mail/backends/smtp.py#L64,
there was an exception because of a gevent bug.
In that case, `fail_silently` is True. The result is that the `open()`
method returns as if everything had gone fine. This means that,
subsequently, the `send_messages()` method will be called, and so on.
Impact: Maybe this is just a bit ugly, however if you continue to work as
if there had been no error when an error has actually occurred, you are
asking for trouble. http://stackoverflow.com/questions/35315397/ shows why
this issue made debugging another problem a day or two longer.
It should also be possible to log the error that occurs during the sending
of the email, although this is probably a different issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/26210>
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/049.4774b6672c11fdc9ee42bfd7ddd0325f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.