Actions
Bug #18345
closedBetter rescue from syntax error in template rendering
Difficulty:
Triaged:
Description
In unsafe mode rendering, SyntaxError can be raised, which is normally not caught. In this specific case, we should be able to rescue even from syntax errors to avoid ugly error pages.
Also we should set proper context so we can get at least the number of line where the error occurred. This is possible only in unsafe mode but better than nothing.
Actions