display full jinja traceback when applicable

This fixes #10010
Lint fix
Merge pull request #10011 from makinacorpus/fix10010

display full jinja traceback when applicable