From 103ef21b4d4caee714285e6f064f9faa08a7fc8a Mon Sep 17 00:00:00 2001 From: Christian Sandberg Date: Mon, 2 Nov 2020 20:28:43 +0100 Subject: [PATCH] Potentially fix crashes with missing excinfo #4 --- pytest_reporter_html1/templates/html1/test.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_reporter_html1/templates/html1/test.html b/pytest_reporter_html1/templates/html1/test.html index b3700de..4ea00ae 100644 --- a/pytest_reporter_html1/templates/html1/test.html +++ b/pytest_reporter_html1/templates/html1/test.html @@ -87,7 +87,7 @@ {% endfor %} {% endblock %} -{% for phase in test.phases if phase.report.longrepr and 'call' in phase %} +{% for phase in test.phases if phase.call and phase.call.excinfo %}
{{ phase.call.excinfo.exconly(tryshort=True) }}