From e8d2272db221feb4e7cdf3dbe3e273e8dddbe752 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 29 Sep 2015 16:30:32 +0530 Subject: [PATCH] [fix] re-raise error in sendmail exception --- frappe/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/tasks.py b/frappe/tasks.py index 3945bf438b..ada78f7b08 100644 --- a/frappe/tasks.py +++ b/frappe/tasks.py @@ -209,6 +209,7 @@ def sendmail(site, communication_name, print_html=None, print_format=None, attac except: frappe.db.rollback() + raise else: frappe.db.commit()