Merge pull request #23534 from anupamvs/company-issue
fix: error log while creating company
This commit is contained in:
commit
ea1da6e4b8
@ -442,7 +442,7 @@ def install_country_fixtures(company):
|
||||
module_name = "erpnext.regional.{0}.setup.setup".format(frappe.scrub(company_doc.country))
|
||||
frappe.get_attr(module_name)(company_doc, False)
|
||||
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)))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user