From 374559bfad212a75e4263d38ae93675302dfcb69 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 3 Aug 2015 19:26:32 +0530 Subject: [PATCH] [fix] Ignore if error coming while sending emails to system managers --- ...otify_system_managers_regarding_wrong_tax_calculation.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/v5_4/notify_system_managers_regarding_wrong_tax_calculation.py b/erpnext/patches/v5_4/notify_system_managers_regarding_wrong_tax_calculation.py index 8096a37a00..2c0c8b4e59 100644 --- a/erpnext/patches/v5_4/notify_system_managers_regarding_wrong_tax_calculation.py +++ b/erpnext/patches/v5_4/notify_system_managers_regarding_wrong_tax_calculation.py @@ -31,8 +31,10 @@ Please check following Entries: Regards, Administrator""" % "\n".join([(d[0] + ": " + ", ".join(d[1])) for d in wrong_records]) - - sendmail_to_system_managers("[Important] [ERPNext] Tax calculation might be wrong, please check.", content) + try: + sendmail_to_system_managers("[Important] [ERPNext] Tax calculation might be wrong, please check.", content) + except: + pass print "="*50 print content