#17664: Smart `if` tag silences exceptions
-------------------------------------+-------------------------------------
     Reporter:  mrmachine            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Template system      |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  smart if tag         |             Triage Stage:  Accepted
  queryset exception silenced        |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by joshmaker):

 I think that the behavior most developers would expect from the `{% if ...
 %}` template tag is for it to handle exceptions similar to how they are
 handled in template variable resolution (see:
 `django.template.base.Variable`). In other words, `AttributeError`,
 `KeyError`, `ValueError`, and `IndexError` as well as exceptions where
 `silent_variable_failure == True` would be silenced and `False` returned,
 but all other exceptions would be raised.

 Here is one proposed solution:
 https://github.com/django/django/compare/master...theatlantic:ticket_17664

--
Ticket URL: <https://code.djangoproject.com/ticket/17664#comment:12>
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/067.5b3b3df563f5c16dd955e7d8db3b6eb7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to