sb/setbuilder: Check is mail is valid.

This commit is contained in:
Chris Johns 2019-08-29 13:28:19 +10:00
parent 2e37160610
commit 8bedf509be

View File

@ -616,7 +616,7 @@ class buildset:
mail_report = True
if interrupted or self.macros.defined('mail_disable'):
mail_report = False
if mail_report:
if mail_report and mail is not None:
if self.installing():
self.write_mail_header('Build Time: %s' % (build_time), True)
self.write_mail_header('', True)