Skip to content

Commit

Permalink
Potentially fix crashes with missing excinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
christiansandberg committed Nov 2, 2020
1 parent 3ac9293 commit 103ef21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_reporter_html1/templates/html1/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
{% endfor %}
{% endblock %}
</table>
{% 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 %}
<div class="repr">
<pre>{{ phase.call.excinfo.exconly(tryshort=True) }}</pre>
</div>
Expand Down

0 comments on commit 103ef21

Please sign in to comment.