Merge pull request #23534 from anupamvs/company-issue

fix: error log while creating company
This commit is contained in:
Marica 2020-10-12 17:25:57 +05:30 committed by GitHub
commit ea1da6e4b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)))