From 37d3686372519b9d0b4a3693391b9dffccb48159 Mon Sep 17 00:00:00 2001 From: Shreya Shah Date: Mon, 8 Oct 2018 14:17:16 +0530 Subject: [PATCH] fix(setup_taxes): Pop if frappe.message_log (#15615) --- erpnext/setup/setup_wizard/operations/taxes_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/setup/setup_wizard/operations/taxes_setup.py b/erpnext/setup/setup_wizard/operations/taxes_setup.py index dd5c0372e4..50bea41301 100644 --- a/erpnext/setup/setup_wizard/operations/taxes_setup.py +++ b/erpnext/setup/setup_wizard/operations/taxes_setup.py @@ -50,7 +50,7 @@ def make_tax_account(company, account_name, tax_rate): "tax_rate": flt(tax_rate) if tax_rate else None }).insert(ignore_permissions=True, ignore_mandatory=True) except frappe.NameError: - frappe.message_log.pop() + if frappe.message_log: frappe.message_log.pop() abbr = frappe.db.get_value('Company', company, 'abbr') account = '{0} - {1}'.format(account_name, abbr) return frappe.get_doc('Account', account)