small fix to logic that was causing test failure

This commit is contained in:
Cole 2018-09-19 15:12:21 -04:00
parent a37be4472d
commit f02ffa4f63
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ class Form(DB.Model):
# if there's a custom email template we should use it
# otherwise check if the user wants a new or old version of the email
if self.owner.has_feature('whitelabel') and self.template:
if self.owner and self.owner.has_feature('whitelabel') and self.template:
html, subject = self.template.render_body_and_subject(
data=data, host=self.host, keys=keys, now=now,
unconfirm_url=unconfirm)