#23924: EmailMessage type checks should raise TypeError, not AssertionError
-----------------------------+------------------------------------
     Reporter:  martinblech  |                    Owner:  nobody
         Type:  Bug          |                   Status:  new
    Component:  Core (Mail)  |                  Version:  master
     Severity:  Normal       |               Resolution:
     Keywords:               |             Triage Stage:  Accepted
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  1            |                    UI/UX:  0
-----------------------------+------------------------------------

Comment (by martinblech):

 [https://github.com/django/django/pull/3630 PR here]

 I'm still not sold on the error message, it says `'"to" argument must be a
 list or tuple'` but the actual check is `isinstance(to,
 six.string_types)`. I think we should change one or the other.

--
Ticket URL: <https://code.djangoproject.com/ticket/23924#comment:2>
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/069.e249bd18d8ab8c88179e41037a0b2001%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to