Use last_frame for function_name
This commit is contained in:
parent
0ff8545641
commit
c2ba2c988c
|
@ -23,7 +23,7 @@ URL: {{ request.url }}
|
||||||
<h2 class="traceback">Traceback <em>(most recent call last)</em></h2>
|
<h2 class="traceback">Traceback <em>(most recent call last)</em></h2>
|
||||||
{{ tb.render_summary(include_title=False) | safe }}
|
{{ tb.render_summary(include_title=False) | safe }}
|
||||||
|
|
||||||
<p>Error in function "{{ tb.frames[-1].function_name }}": {{ last_frame_args | pprint }}</p>
|
<p>Error in function "{{ last_frame.function_name }}": {{ last_frame_args | pprint }}</p>
|
||||||
<pre>{{ last_frame.locals | pprint }}</pre>
|
<pre>{{ last_frame.locals | pprint }}</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue