Opened 9 years ago

Closed 6 years ago

#5048 closed (wontfix)

Allow TypeError exceptions to propagate in templates

Reported by: Jan Rademaker <j.rademaker@…> Owned by: nobody
Component: Template system Version: master
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

This patch fixes a gotcha by counting the number of entries in the traceback. More than 1 entry means the exception happened somewhere in the method.

Attachments (1)

ticket5048.diff (2.7 KB) - added by Jan Rademaker <j.rademaker@…> 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Jan Rademaker <j.rademaker@…>

Attachment: ticket5048.diff added

comment:1 Changed 9 years ago by Simon G. <dev@…>

Triage Stage: UnreviewedReady for checkin

comment:2 Changed 9 years ago by Adrian Holovaty

Triage Stage: Ready for checkinDesign decision needed

Wait -- we don't want TypeError to be propogated. One of the design goals for the template system is that it shouldn't propogate exceptions.

comment:3 in reply to:  2 Changed 9 years ago by Jan Rademaker <j.rademaker@…>

Replying to adrian:

Wait -- we don't want TypeError to be propogated. One of the design goals for the template system is that it shouldn't propogate exceptions.

Are you talking about the current sitution or how you think it ought to be? Because right now, any Exception is propogated, except TypeErrors (due to the gotcha) and exceptions with a silent_variable_failure attribute set to True.

comment:4 Changed 6 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: newclosed

This is backwards incompatible and we really prefer template rendering to never be replaced with a 500 page due to internal crashes time.

Note: See TracTickets for help on using tickets.
Back to Top