From 27692670b15ae0310df5cb36ebb7a0fd6622e874 Mon Sep 17 00:00:00 2001
From: mbauskar
Date: Wed, 28 Jun 2017 10:56:50 +0530
Subject: [PATCH] [fix] handle email exception if email account is not
configured
---
erpnext/patches/v8_1/setup_gst_india.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/erpnext/patches/v8_1/setup_gst_india.py b/erpnext/patches/v8_1/setup_gst_india.py
index ea9a8200c0..efdb9c5e9f 100644
--- a/erpnext/patches/v8_1/setup_gst_india.py
+++ b/erpnext/patches/v8_1/setup_gst_india.py
@@ -31,5 +31,7 @@ Templates and update your Customer's and Supplier's GST Numbers.
ERPNext Team.
""".format(gst_document_link=" ERPNext GST Document ")
- sendmail_to_system_managers("[Important] ERPNext GST updates", message)
-
+ try:
+ sendmail_to_system_managers("[Important] ERPNext GST updates", message)
+ except Exception as e:
+ pass
\ No newline at end of file