fixed conflict
diff --git a/erpnext/patches/4_0/countrywise_coa.py b/erpnext/patches/4_0/countrywise_coa.py
index bddb279..b967d54 100644
--- a/erpnext/patches/4_0/countrywise_coa.py
+++ b/erpnext/patches/4_0/countrywise_coa.py
@@ -16,8 +16,11 @@
frappe.db.sql("""update tabAccount set account_type=%s
where account_type=%s""", (new, old))
- frappe.db.sql("""update `tabAccount` set report_type =
- if(is_pl_account='Yes', 'Profit and Loss', 'Balance Sheet')""")
+ try:
+ frappe.db.sql("""update `tabAccount` set report_type =
+ if(is_pl_account='Yes', 'Profit and Loss', 'Balance Sheet')""")
- frappe.db.sql("""update `tabAccount` set balance_must_be=debit_or_credit
- where ifnull(allow_negative_balance, 0) = 0""")
\ No newline at end of file
+ frappe.db.sql("""update `tabAccount` set balance_must_be=debit_or_credit
+ where ifnull(allow_negative_balance, 0) = 0""")
+ except:
+ pass