From c2ba2c988c0146ba8208cf7b415a2c344da56731 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 8 Jan 2020 15:38:16 +0000 Subject: [PATCH] Use last_frame for function_name --- templates/show_error.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/show_error.html b/templates/show_error.html index bdec171..483dee4 100644 --- a/templates/show_error.html +++ b/templates/show_error.html @@ -23,7 +23,7 @@ URL: {{ request.url }}

Traceback (most recent call last)

{{ tb.render_summary(include_title=False) | safe }} -

Error in function "{{ tb.frames[-1].function_name }}": {{ last_frame_args | pprint }}

+

Error in function "{{ last_frame.function_name }}": {{ last_frame_args | pprint }}

{{ last_frame.locals | pprint }}