fix: Send other auto email report if one fails
This commit is contained in:
parent
c98bfdb1ab
commit
4461bde3d6
1 changed files with 4 additions and 2 deletions
|
|
@ -216,8 +216,10 @@ def send_daily():
|
|||
elif auto_email_report.frequency == 'Weekly':
|
||||
if auto_email_report.day_of_week != current_day:
|
||||
continue
|
||||
|
||||
auto_email_report.send()
|
||||
try:
|
||||
auto_email_report.send()
|
||||
except Exception as e:
|
||||
frappe.log_error(e, _('Failed to send {0} Auto Email Report').format(auto_email_report.name))
|
||||
|
||||
|
||||
def send_monthly():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue