fix: error log while creating company

This commit is contained in:
Anupam 2020-10-07 18:16:18 +05:30
parent ce39323a0a
commit 22dc42efb9

View File

@ -442,7 +442,7 @@ def install_country_fixtures(company):
module_name = "erpnext.regional.{0}.setup.setup".format(frappe.scrub(company_doc.country)) module_name = "erpnext.regional.{0}.setup.setup".format(frappe.scrub(company_doc.country))
frappe.get_attr(module_name)(company_doc, False) frappe.get_attr(module_name)(company_doc, False)
except Exception as e: except Exception as e:
frappe.log_error(str(e), frappe.get_traceback()) frappe.log_error()
frappe.throw(_("Failed to setup defaults for country {0}. Please contact support@erpnext.com").format(frappe.bold(company_doc.country))) frappe.throw(_("Failed to setup defaults for country {0}. Please contact support@erpnext.com").format(frappe.bold(company_doc.country)))