Skip to content

Commit

Permalink
fix: ignore non-existing regional customizations (backport #38621) (#…
Browse files Browse the repository at this point in the history
…38624)

fix: ignore non-existing regional customizations (#38621)

(cherry picked from commit 9611e9b)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush authored Dec 7, 2023
1 parent 5cf0c89 commit c70e6f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions erpnext/setup/setup_wizard/operations/taxes_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# License: GNU General Public License v3. See license.txt


import os
import json
import os

import frappe
from frappe import _
Expand Down Expand Up @@ -114,10 +114,11 @@ def update_regional_tax_settings(country, company):
frappe.scrub(country)
)
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
frappe.log_error("Unable to setup regional tax settings")
pass


def make_taxes_and_charges_template(company_name, doctype, template):
Expand Down

0 comments on commit c70e6f2

Please sign in to comment.