{% for stack in exception.stacktrace() %}
#{{ loop.index }} {{ stack.file_short }}:{{stack.lineno }}
{% for lineno, content in stack.file_contents.items() %}
{% if stack.language == 'python' %} {{ content|safe }} {% else %} {{ content }} {% endif %} {% endfor %}
{% if stack.variables %}
{% for variable, value in stack.variables.items() %}
{{ variable }}
{{ value }}
{% endfor %}
{% else %}
{% endif %}
{% endfor %}
{% for title, value in exception.get_integrations().items() %}
{{ title }}
{{ value['content']|safe }}
{% endfor %}
{% for context, values in exception.get_contexts().items() %}
{{ context }}
{% for key, value in values.items() %}
{{ key }}: {{ value }}
{% endfor %}
{% endfor %}