#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 timgraham):

 I confirmed this is still an issue on master. In the case of `{% if not
 obj.raises_exception %}`, here is the relevant
 
[https://github.com/django/django/blob/3862c568ac1b920188ecfbe5cd8073160206d6b9/django/template/smartif.py#L85-L89
 exception catching].

 If the fix is to remove this exception handling, this will obviously be
 backwards incompatible for people relying on silent failure.

--
Ticket URL: <https://code.djangoproject.com/ticket/17664#comment:11>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.2d0bb299ab0f1cbc5c488c5a22a48024%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to