mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 11:44:11 +00:00
fix: ignore non-existing regional customizations (#38621)
(cherry picked from commit 9611e9bd7f)
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
# License: GNU General Public License v3. See license.txt
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
from frappe import _
|
from frappe import _
|
||||||
@@ -114,10 +114,11 @@ def update_regional_tax_settings(country, company):
|
|||||||
frappe.scrub(country)
|
frappe.scrub(country)
|
||||||
)
|
)
|
||||||
frappe.get_attr(module_name)(country, company)
|
frappe.get_attr(module_name)(country, company)
|
||||||
except Exception as e:
|
except (ImportError, AttributeError):
|
||||||
|
pass
|
||||||
|
except Exception:
|
||||||
# Log error and ignore if failed to setup regional tax settings
|
# Log error and ignore if failed to setup regional tax settings
|
||||||
frappe.log_error("Unable to setup regional tax settings")
|
frappe.log_error("Unable to setup regional tax settings")
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def make_taxes_and_charges_template(company_name, doctype, template):
|
def make_taxes_and_charges_template(company_name, doctype, template):
|
||||||
|
|||||||
Reference in New Issue
Block a user