#16866: Handling empty list of candidates in select_template function
----------------------------------------+---------------------------------
               Reporter:  Silver_Ghost  |          Owner:  Silver_Ghost
                   Type:  Bug           |         Status:  new
              Milestone:                |      Component:  Template system
                Version:  SVN           |       Severity:  Normal
             Resolution:                |       Keywords:  select_template
           Triage Stage:  Accepted      |      Has patch:  1
    Needs documentation:  0             |    Needs tests:  1
Patch needs improvement:  1             |  Easy pickings:  1
                  UI/UX:  0             |
----------------------------------------+---------------------------------
Changes (by carljm):

 * needs_docs:   => 0
 * has_patch:  0 => 1
 * needs_better_patch:   => 1
 * needs_tests:   => 1
 * stage:  Unreviewed => Accepted


Comment:

 I don't think we need to change the exception class here;
 `TemplateDoesNotExist` is an ok exception to raise in this case. Changing
 it to `ValueError` could break existing code; it's not worth it.

 Accepting this on the basis that it would be nice to provide a clearer
 message to the `TemplateDoesNotExist` error, rather than an empty message.

 Also, test needed.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16866#comment:1>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to