default_mail: Avoid traceback if swat_monitor isn't set

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2021-01-22 11:00:19 +00:00
parent ca2da94e62
commit 66ca688ff8

View File

@ -1,6 +1,6 @@
The Yocto Project Autobuilder has detected a {{ status_detected }} on
builder {{ buildername }}.
{% if build.properties.swat_monitor[0] %}
{% if 'swat_monitor' in build.properties and build.properties.swat_monitor[0] %}
These build failures need to be triaged by the Swat team.
{% else %}
These build failures no not need to be triaged by the Swat team.y