fix: removing condition

This commit is contained in:
Anupam K 2020-09-02 12:19:34 +05:30
parent 431596cccf
commit aecb77ce9b

View file

@ -38,8 +38,7 @@ class Newsletter(WebsiteGenerator):
if self.recipients:
self.queue_all()
if getattr(frappe.local, "is_ajax", False):
frappe.msgprint(_("Email queued to {0} recipients").format(len(self.recipients)))
frappe.msgprint(_("Email queued to {0} recipients").format(len(self.recipients)))
else:
frappe.msgprint(_("Newsletter should have atleast one recipient"))