fix: ignore duplicates explicitly
This commit is contained in:
committed by
Ankush Menat
parent
856d3f63b5
commit
9c7df2eec5
@@ -847,7 +847,7 @@ def create_payment_gateway_account(gateway, payment_channel="Email"):
|
||||
"payment_account": bank_account.name,
|
||||
"currency": bank_account.account_currency,
|
||||
"payment_channel": payment_channel
|
||||
}).insert(ignore_permissions=True)
|
||||
}).insert(ignore_permissions=True, ignore_if_duplicate=True)
|
||||
|
||||
except frappe.DuplicateEntryError:
|
||||
# already exists, due to a reinstall?
|
||||
|
||||
Reference in New Issue
Block a user