Skip to content

Commit

Permalink
fix: Email Template None not found (#40167)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Feb 27, 2024
1 parent dde4d9e commit 043d9e3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ def supplier_rfq_mail(self, data, update_password_link, rfq_link, preview=False)
"user_fullname": full_name,
}
)

if not self.email_template:
return

email_template = frappe.get_doc("Email Template", self.email_template)
message = frappe.render_template(email_template.response_, doc_args)
subject = frappe.render_template(email_template.subject, doc_args)
Expand Down

0 comments on commit 043d9e3

Please sign in to comment.